generateSecretKey
Generates a secure random key value for use in the encrypt and decrypt functions.
generateSecretKey([algorithm] [,keysize]) → returns string
Argument Reference
algorithm string
The encryption algorithm used to generate the key. NOTE: You cannot use
generateSecretKey() to create a key for the CFMX_COMPAT default algorithm in encrypt() and decrypt() functions. Values:
AESBLOWFISHDESDESEDE
keysize numeric
Default: 128
128
Number of bits requested in the key for the specified algorithm (when allowed by JDK).
Values:
128192256512
Links more information about generateSecretKey
- Generating AES 256 bit Key - How to enable unlimited strength crypto in Java.
Examples Sample code invoking the generateSecretKey function
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/generatesecretkey