GenerateCryptoKey (open)
Create a cryptograpic key
Syntax
LOADLIB "wh::crypto.whlib";
OBJECT FUNCTION GenerateCryptoKey(STRING type, VARIANT options)
Parameters
STRING type
The type of key to create ("RSA", "EC")
VARIANT options
Options for key verification
STRING curve
For EC keys, the curve to use ("prime256v1", "secp384r1", "secp521r1")
INTEGER numbits
For RSA keys, the key length (1024 - 4096)