Method Crypto.RSA()->generate_key()
- Method
generate_key
this_programgenerate_key(int(128..)bits,function(int:string)|voidr)- Description
Generate a valid RSA key pair with the size
bits. A random function may be provided as arguemntr, otherwise Crypto.Random.random_string will be used. Keys must be at least 128 bits.