Implementation of the pen-and-paper VIC cipher
Project description
This is a Python 3 implementation of the pen-and-paper cipher used by the Soviet spy Reino Häyhänen, codenamed “VICTOR”, in the 1950s.
If you have 3to2 from the PyPI installed you can just run make 3to2 and you will end up with a copy of the cipher implementation in the 3to2/ subdirectory converted to run under Python 2.
Usage
The vic entrypoint has two subcommands, encrypt and decrypt. To encrypt something you have to pass the following as arguments to the encrypt subcommand:
A 10 character key for the straddling checkerboard, with two of those characters being spaces that are used for the second and third layer of the checkerboard.
A 5 digit unique and random message ID.
A 20 character passphrase used to derive keys.
A date used to derive keys and to insert the message ID into the ciphertext. (DDMMYYYY)
A 1 or 2 digit personal identifier, unique per person.
A cleartext message to encrypt.
To decrypt a message you have to pass the following as arguments to the decrypt subcommand:
A 10 character key for the straddling checkerboard, with two of those characters being spaces that are used for the second and third layer of the checkerboard.
A 20 character passphrase used to derive keys.
A date used to derive keys and to insert the message ID into the ciphertext. (DDMMYYYY)
A 1 or 2 digit personal identifier, unique per person.
A cleartext message to encrypt.
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
Built Distribution
File details
Details for the file vic-0.0.1.tar.gz
.
File metadata
- Download URL: vic-0.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f276025515fea20ed259cb7d3d3d1c2c74d54f4a2dd69b3d1afa3bdd99436e03 |
|
MD5 | cc83e09a2ab2820e7eb6e1a1e09554d0 |
|
BLAKE2b-256 | f52f4e5757e63a51f3a870e20718a79151d13ffdcc29540ea8d3c869811ae703 |
File details
Details for the file vic-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: vic-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cffab002b352752a8dd97b7296d7272afb9a0eaccf5f17941ac68315a283e851 |
|
MD5 | c7be1c57e5405c2ddb75d146da167dcd |
|
BLAKE2b-256 | 22820b5af225b8caaa46ffef8a2b3beecd5cf1b7044decc3ca49d3075b6576de |