RSACrypt

open class RSACrypt

Encrypt and decrypt bytes or a string.

Functions

Link copied to clipboard
open fun decryptToBytes(privateKey: PrivateKey, message: String): Array<Byte>
Decrypt a base 64 encrypted message with an RSA private key.
Link copied to clipboard
open fun decryptToString(privateKey: PrivateKey, message: String): String
Decrypt a base 64 encrypted message with an RSA private key.
Link copied to clipboard
open fun encrypt(publicKey: PublicKey, bytes: Array<Byte>): String
Encrypt a byte array with an RSA public key.
open fun encrypt(publicKey: PublicKey, message: String): String
Encrypt a string with an RSA public key.