Module cipher_crypt::baconian

source ·
Expand description

Bacon’s cipher, or the Baconian cipher, hides a secret message in plain sight rather than generating ciphertext (steganography). It was devised by Sir Francis Bacon in 1605.

Each character of the plaintext message is encoded as a 5-bit binary character. These characters are then “hidden” in a decoy message through the use of font variation. This cipher is very easy to crack once the method of hiding is known. As such, this implementation includes the option to set whether the substitution is use_distinct_alphabet for the whole alphabet, or whether it follows the classical method of treating ‘I’ and ‘J’, and ‘U’ and ‘V’ as interchangeable characters - as would have been the case in Bacon’s time.

If no concealing text is given and the boilerplate of “Lorem ipsum…” is used, a plaintext message of up to ~50 characters may be hidden.

Structs

This struct is created by the new() method. See its documentation for more.