Encryptor
Helper class for encryption/decryption/hash computations.
Types
Link copied to clipboard
enum CipherMode
Functions
Link copied to clipboard
Decrypts data with key using AES/GCM/NoPadding.
Decrypts data with key using using AES/GCM/NoPadding.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun decryptWithRSA(privateKey: PrivateKey, data: String, cipherMode: Encryptor.CipherMode): String
Returns data decrypted with an RSA private key.
Link copied to clipboard
open fun decryptWithRSABytes(privateKey: PrivateKey, data: String, cipherMode: Encryptor.CipherMode): Array<Byte>
Returns data decrypted with an RSA private key.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encryptWithPublicKey(publicKey: PublicKey, data: String, cipherMode: Encryptor.CipherMode): Array<Byte>
Link copied to clipboard
open fun encryptWithRSA(publicKey: PublicKey, data: String, cipherMode: Encryptor.CipherMode): String
Returns data encrypted with an RSA public key.
Link copied to clipboard
open fun encryptWithRSABytes(publicKey: PublicKey, data: String, cipherMode: Encryptor.CipherMode): Array<Byte>
Returns data encrypted with an RSA public key.
Link copied to clipboard
Retrieves data from an InputStream.
Link copied to clipboard
Returns initialized cipher for decryption.
Link copied to clipboard
Returns initialized cipher for encryption with an IV automatically generated.
Link copied to clipboard
Retrieves data from a File.
Link copied to clipboard
Retrieves data from an InputStream.
Link copied to clipboard
Checks if the string is Base64 encoded.