Module profligate::caesar[][src]

Core Caesar cipher code.

Enums

CaesarError

Error type for Caesar cipher encryption and decryption.

Functions

decrypt

Decrypt a string of text with the given key. Under the hood, this is the same as encrypting with the negative key, thanks to the Caesar cipher’s properties.

encrypt

Encrypt a string of text with the given key. This operation happens in place to cut down on allocations.