?
mac
Summary​
Creates a MAC (Message Authentication Code)
Description​
Fields​
algorithm​
The MAC algorithm.
aes_128_cbc, aes_192_cbc, aes_256_cbc, aes_128_cfb128, aes_192_cfb128, aes_256_cfb128, aes_128_cfb8, aes_192_cfb8, aes_256_cfb8, blowfish_cbc, des_cbc, des_ede3_cbc, md4, md5, poly1305, rc2_cbc, sha, sha224, sha256, sha384, sha512, sha3_224, sha3_256, sha3_384, sha3_512
data​
The string data to be encrypted.
key​
The key used for generating the MAC.
handle key​
Determines how to handle the key if it is not the expected length.
strict: Causes an error if key is not the correct length
truncate: If it is shorter, the key will be padded. If it is longer, it will be truncated.
mac length​
The length of the MAC result between 1 and the max length of the chosen algorithm. If zero is chosen, the max will be used.
Helpful?