Simple encrypt and decrypt commands using AES encryption algorithm

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

 Description

The neoCrypto plugin for VisualNEO Web provides encryption, decryption, and hashing capabilities, allowing developers to secure data within their applications. This plugin is based on the CryptoJS library and supports various encryption and hashing methods, making it suitable for applications that require data security. Here’s an overview of its main features:

    • AES Encryption and Decryption:
      • neoCryptoEncrypt: Encrypts text using the AES (Advanced Encryption Standard) algorithm. Developers provide the text to encrypt, a secret key, and a variable to store the encrypted result. This function supports AES-128, AES-192, and AES-256, automatically selecting the variant based on the key size.
      • neoCryptoDecrypt: Decrypts text that was previously encrypted with neoCryptoEncrypt. The command takes the encrypted text and the matching secret key, outputting the decrypted text to a specified variable.
    • Hashing:
      • neoCryptoHash: Hashes a string using a specified algorithm (e.g., MD5, SHA-1, SHA-256) and returns a Base64-encoded string. This hashing feature is essential for securely storing passwords or verifying data integrity, as it produces a non-reversible, unique output for each input string.

The neoCrypto plugin is ideal for applications that need to protect sensitive information, such as user passwords or private data, enhancing security through strong encryption and hashing methods​.

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

Created with the Personal Edition of HelpNDoc: Elevate your documentation to new heights with HelpNDoc's built-in SEO