Whatever message this page gives is out now! Go check it out!
GenerateSecretKey(algorithm [,keysize]) |
| Parameter | Description |
algorithm | The encryption algorithm for which to generate the key. ColdFusion installs a cryptography library with the following algorithms:
|
keysize | Number of bits requested in the key for the specified algorithm. You can use this to request longer keys when allowed by the JDK. For example, the AES algorithm keys are limited to 256 bits unless the Java Unlimited Strength Jurisdiction Policy Files are installed. For more information, see http://java.sun.com/products/jce/index-14.html . |
<cfscript>
myAESKey=generateSecretKey(("AES"),256)
writeOutput(myAESKey) // XNAJxwjyuCBlpGGbXygWSaxoMd7Dfb1oFdP+JBeyTOs=
</cfscript>