RSAClient Cipher

constructor(privateKey: String, publicKey: String)
constructor(privateKey: PrivateKey, publicKey: PublicKey)

Constructor to init a RSAClientCipher object

Parameters

privateKey

: the private key used to decrypt the content

publicKey

: the public key used to encrypt the content


constructor(keyPair: KeyPair)

Constructor to init a RSAClientCipher object

Parameters

keyPair

: key pair from fetch the private and the public key