setCipher

open fun setCipher(privateKey: String, publicKey: String)
open fun setCipher(privateKey: PrivateKey, publicKey: PublicKey)

Method to set the cipher instance

Parameters

privateKey

: the private key used to decrypt the content

publicKey

: the public key used to encrypt the content

Throws

when an error occurred


open fun setCipher(keyPair: KeyPair)

Method to set the cipher instance

Parameters

keyPair

: key pair from fetch the private and the public key

Throws

when an error occurred