SymmetricEncoder

class SymmetricEncoder(cipher: SymmetricCipher = SymmetricCipher())

Password-based symmetric encryption encoder for overlay and clipboard hiding.

Plaintext is encrypted with SymmetricCipher and represented as standard Base64 (no line wraps) for embedding in visible text fields.

Constructors

Link copied to clipboard
constructor(cipher: SymmetricCipher = SymmetricCipher())

Functions

Link copied to clipboard
fun decode(encoded: String, password: CharArray): String?

Decodes and decrypts encoded with password.

Link copied to clipboard
fun encode(plaintext: String, password: CharArray): String

Encrypts plaintext with password and returns Base64 ciphertext.