Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function GENERATESECRETKEY

Gets a secure key value for use in the encrypt function.

Example

generatesecretkey(string algorithm,[number keySize]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
algorithm string  Yes The encryption algorithm for which to generate the key.  
keySize number  No Number of bits requested in the key for the specified algorithm.