PaddingEncoder

Template-based steganography: hides plaintext after a recognizable cover block.

The encoded form is title, blank line, template body, blank line, then secret payload. Decoding succeeds only when the input starts with the exact marker derived from the template.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun decode(encoded: String, templateTitle: String, templateBody: String): String?

Extracts hidden plaintext from encoded if it matches the template marker.

Link copied to clipboard
fun encode(plaintext: String, templateTitle: String, templateBody: String): String

Wraps plaintext after templateTitle and templateBody with standard paragraph spacing.