GenerateRSAkeys

Generates a secure key (private and public) for use in the encrypt function with the RSA algorithm.

GenerateRSAkeys( )

Returns: Struct

This function does not take any arguments.

Examples

key=generateRSAKeys();
dump(key);
raw="Susi Sorglos f�hnte Ihr Haar";
enc=encrypt(raw,key.private,"rsa");
dec=decrypt(enc,key.public,"rsa");
dump(enc);
dump(dec);
enc=encrypt(raw,key.public,"rsa");
dec=decrypt(enc,key.private,"rsa");
dump(enc);
dump(dec);

See also