Simple encrypt and decrypt commands using AES encryption algorithm

Based on CryptoJS library:
https://code.google.com/archive/p/crypto-js/downloads

 

neoCryptoEncrypt

Purpose:

Encrypt a text message.
Supports AES-128, AES-192, and AES-256. It will pick the variant by the size of the key you pass in. If you use a passphrase, then it will generate a 256-bit key.

Category:

neoCrypto

Syntax:

neoCryptoEncrypt "theMessage" "theKey" [retVar]

 

theMessage

Text to encrypt

theKey

Secret key

retVar

Variable to store result

 

neoCryptoDecrypt

Purpose:

Decrypt a text message

Category:

neoCrypto

Syntax:

neoCryptoDecrypt "theMessage" "theKey" [retVar]

 

theMessage

Text to decrypt

theKey

Secret key

retVar

Variable to store result

 

neoCryptoHash

Purpose:

Hash a string using the choosen algorithm. Returns a Base64 String.

Category:

neoCrypto

Syntax:

neoCryptoHash "theMessage" theMethod [retVar]

 

theMessage

Text to hash

theMethod

Hash algorithm

retVar

Variable to store result