Raw encryption functions
Please note they solely apply a cipher to the data and do not provide additional security measures.
type. The syntax of the type string is:
algorithm is:
- aes — AES (Rijndael-128, -192 or -256)
mode is one of:
- cbc — next block depends on previous (default)
- ecb — each block is encrypted separately (for testing only)
padding is one of:
- pkcs — data may be any length (default)
- none — data must be multiple of cipher block size
The given encryption/decryption key MUST match length 16/24/32 bytes as required by aes-128/192/256.
of type text
Example of raw encryption functions
Example of raw encryption functions
hmac
Returns the HMAC result regarding the input secret, payload and hash algorithm. Please refer to HMAC for more information in cryptography. Currently, the supported hash algorithms for hash_algo are sha1 and sha256.
Syntax
Example