Skip to main content

generateRSAKeyPair method

[AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]]

Generates RSA Key Pairs (Public/Private).

Should be called only during app's first initialization, and any future usage should be done by getting the keys from the local storage.

params: None

returns:

  • AsymmetricKeyPair<PublicKey, PrivateKey>: The generated public and private keys.

Implementation

AsymmetricKeyPair<PublicKey, PrivateKey>  
  1. talawa
  2. encryptor
  3. Encryptor
  4. generateRSAKeyPair method
Encryptor class