Lucee Function Reference
Function DECRYPTBINARY
Decrypts the given binary with the optional parameters
Example
decryptbinary(any input,string key,[string algorithm,[any IVorSalt,[number iterations]]]):any
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
input | any | Yes | Binary data to decrypt. | |
key | string | Yes |
Key or seed used to encrypt the string. |
|
algorithm | string | No | cfmx_compat |
The algorithm to use to decrypt the string. Must be the same as the algorithm used to encrypt the string. |
IVorSalt | any | No | Initialization Vector for algorithms with Feedback Mode that is not ECB, or Salt for Password Based Encryption algorithms | |
iterations | number | No | number of Iterations for Password Based Encryption algorithms (ignored for all other algorithms). NIST recommends a minimum value of 1000. |