How can I retrieve a password from user input in Lua in a way that it can securely be deleted from memory after the program is done using the password?
This is a followup to: lua aes encryption
How can I convert a password to hexadecimals in lua?
A simple example would be:
“pass” becomes {0x70,0x61,0x73,0x73}
What do you mean by “hexadecimals”? Do you want to convert
passto a string containing#pass*2hexadecimal characters? Then you want this:Or do you want a table of numbers, where each number is one character code (byte)? Then you want this: