The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TIPS] Variables can be nested!
2014-03-20, 11:20
Post: #1
[TIPS] Variables can be nested!
Found out this neat feature of iPXE:

set testvalue0 1234
set testvalue1 4567
set index 0
echo ${testvalue${index}}
>1234
set index 1
echo ${testvalue${index}}
>4567

This can be used to "create" simple encryption/authentication algoritms, even if those aren't "secure", you can for example prevent causual listening in a network. (just as a "obfuscation")
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[TIPS] Variables can be nested! - sebastian - 2014-03-20 11:20



User(s) browsing this thread: 3 Guest(s)