generateRSAKeys

Generates an RSA key pair for encrypt() and decrypt(). Returns a struct with private and public keys.

generateRSAKeys([key_size]) → returns struct

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

key_size numeric
Default: 1024

The key size in bits. Lucee 6.2.0.55+.

Examples
Sample code invoking the generateRSAKeys function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub