Crypto

object Crypto

Cryptography utilities for AES encryption and decryption. It also has base64 encoding and decoding utilities.

Types

Link copied to clipboard

Exception class representing an error during decryption process.

Functions

Link copied to clipboard
fun base64Decode(data: String, flag: Int = Base64.DEFAULT): String

Decodes the specified base64-encoded string.

Link copied to clipboard
fun base64Encode(data: ByteArray, flag: Int = Base64.DEFAULT): String

Encodes the specified data into a base64-encoded string.

Link copied to clipboard
fun decryptAes(encryptedData: String, key: String): String

Decrypts the specified AES encrypted data using the provided key.