Create a public-private key pair

generateKeyPair(publicKeyFileName, privateKeyFileName)

Arguments

publicKeyFileName

Name of the file where the public key should be stored.

privateKeyFileName

Name of the file where the private key should be stored.

Details

Creates an RSA 4096-bit public-private key pair. The public key can be used to encrypt data, and only with the private key can the data be decrypted.

Examples

if (FALSE) {
generateKeyPair("public.key", "private.key")
}