LibCrypto (1.0)

This lib adds the ChaCha20 cipher to ESO.

LibCrypto.generateKey()
–returns a key (a random 32 character string)

LibCrypto.generateNonce()
–returns a nonce (a random 12 character string)

LibCrypto.encrypt(text, key, nonce)
–returns encryptedString, encryptedTable
–encryptedString is the encrypted value as string (can have weird behaviour when saving in saved vars)
–encryptedTable it the encrypted value as table (for example to store it in saved vars)

LibCrypto.decrypt(text, key, nonce)
–returns decryptedString

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.