A variation of the Augustus Cipher that offsets space-separated words based on the position of each character.
Project description
stepped-augustus
A variation of the Augustus Cipher that offsets space-separated words based on the position of each character; contary to what Augustus had originally practiced, letters wrap around instead of presenting a special case.
"Whenever he wrote in cipher, he wrote B for A, C for B, and the rest of the letters on the same principle, using AA for X."
— Suetonius, Life of Augustus 88
Installation
Through pip
:
> python -m pip install stepped-augustus
Usage
As a CLI application:
> augustus -h
usage: augustus [-h] [--direction {left,right}] [--multiplier MULTIPLIER] message
Ciphers a given message.
positional arguments:
message The message to be ciphered
optional arguments:
-h, --help show this help message and exit
--direction {left,right}
The direction to cipher the message to
--multiplier MULTIPLIER
The multiplier to be applied when ciphering a message
> augustus "Hello, World" --direction right --multiplier 1
Igopt, Xqupi
> augustus "Igopt, Xqupi" --direction left --multiplier 1
Hello, World
As a package:
>>> from augustus import SteppedAugustus
>>> SteppedAugustus("Hello, World", 1).right_cipher
'Igopt, Xqupi'
>>> SteppedAugustus("Igopt, Xqupi", 1).left_cipher
'Hello, World'
Todo
- Publish to PyPI
- Command-line script
- Utilize lazy evaluation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stepped-augustus-1.0.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for stepped_augustus-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce15e950ade977e726a2844ec20e25b5780dd912c516bd034918b89f9844452 |
|
MD5 | 9a50cb158d5597275264411027300785 |
|
BLAKE2b-256 | 78e7ac4001899a4fe3c8ad5405bad96eabf1efba0801b97398f879afd537e11c |