Encrypts binary data using a specific algorithm and encoding method.
encryptBinary(binaryData, key [, algorithm [, encoding] [, iv | salt [, iterations]]])
→ returns string
CFMX_COMPAT
algorithm, any combination of any number of characters; used as a seed used to generate a 32-bit encryption key.GenerateSecretKey
function to generate the key.
CFMX_COMPAT
CFMX_COMPAT
AES
BLOWFISH
DES
DESEDE
DESX
RC2
RC4
RC5
PBE
AES/GCM/NoPadding
salt
.algorithm
parameter.
iv
.algorithm
parameter.
0
algorithm
parameter with a Password Based Encryption (PBE) algorithm.salt
parameter. Do not specify this parameter for Block Encryption Algorithms.Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.