14.04.2020, 02:21
(20.01.2020, 08:32)admin Wrote: For AES functions use library in this post: https://forum.logicmachine.net/showthread.php?tid=2057
for Aes functions, what format can the key and hash need to be in ? string, table, byte array? etc,
i have the below it runs with no err but result not correct i think key an iv need to be in a different format?
key = 'u�НJ�z�6���Y+�'
iv = 'b/�~��ss��'
payload = 'some data'
local aes, err = aes:new(key, nil, aes.cipher(256, 'cbc'), iv, nil, 0)
ciphertext = aes.encrypt(payload)
log(ciphertext)