WLJS LogoWLJS Notebook

GenerateAsymmetricKeyPair

GenerateAsymmetricKeyPair[] randomly generates a PrivateKey and corresponding PublicKey object for use with public-key cryptographic functions.

  • GenerateAsymmetricKeyPair[type] randomly generates private and public keys of the specified type.
  • GenerateAsymmetricKeyPair[opts] randomly generates keys using the specified options.

Examples

Generate an RSA key pair:

keys = GenerateAsymmetricKeyPair[]

Generate an ECC key pair:

GenerateAsymmetricKeyPair["EllipticCurve"]

Please visit the official Wolfram Language Reference for more details.

On this page