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