GenerateSecretKey

Generates an encoded encryption key using the specified algorithm and key size

Method Signature

GenerateSecretKey(algorithm=[string], keySize=[numeric])

Arguments

ArgumentTypeRequiredDescriptionDefault

algorithm

string

false

The algorithm to use for generating the key. The default is AES. Example values are: AES, DES, DESede, Blowfish, HmacSHA1, HmacSHA256, HmacSHA384, HmacSHA512

AES

keySize

numeric

false

The optional size of the key to generate. If not provided the default key size for the algorithm will be used

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC