MivaScript Builtin Function, Miva Merchant 9+
crypto_evp_encrypt( ciphername, key, iv, plaintext, encrypted var )
<mvt:assign name="g.return_value" value="crypto_evp_encrypt( ciphername, key, iv, plaintext, encrypted var )" />
Encrypts "plaintext" using the block cipher specified by "ciphername", placing the encrypted data into "encrypted".
ciphername
The OpenSSL identifier of the cipher, such as "bf-cbc" or "des-ede3-cbc".
key
The encryption key. Must be exactly the number of bytes required by the cipher, as returned by crypto_cipher_key_length.
iv
An initialization vector, if required by the cipher. Must be exactly the number of bytes required by the cipher, as returned by crypto_cipher_iv_length.
plaintext
The text to be encrypted
encrypted var
[output] Receives the cipher text