Preserving History Through Code- Caesar Cipher
Project description
Preserving History Through Code- Julius Caesar's Shift Cipher
Gaius Julius Caesar
From Wikipedia, the free encyclopedia In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code, or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence.
Caesar cipher using a left rotation of three places
Expectations
Plain : ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher: XYZABCDEFGHIJKLMNOPQRSTUVW
Plaintext : THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
Ciphertext: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD
Caesar cipher disk was invented over a millemium after Julius Caesar
But we would borrow Alberti's disc to also visualize the Caesar's Cipher
CipherDisk2000 invented by Leon Battista Alberti 1404 - 1472
Source: Wikipedia
Caesar cipher using a left rotation of three places
With a left shift of 3, D would be replaced by A, E would become B, and so on.
The cipher disk illustration was inspired by Alberti's cipher disk, although his disk had the outer disk as the rotating disk and it was also in the reverse order compared to the inner disk.
Focus
This caesar cipher program encrypts only uppercase letters and no other characters. Modelled closely to the caesar cipher used before common era.
Install
pip install jc-cipher
Run in command/terminal
jc-cipher
Import modules
from caesar_cipher import encryption as ce
from caesar_cipher import decryption as de
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
Hashes for jc_cipher-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7883e16a980e124cd45febe26bb2d0fbe07f63660009f7e248d68bb3b6cd9e56 |
|
MD5 | 90270d3dc5a95f49dc9d52a522ff4132 |
|
BLAKE2b-256 | 9000c20f02570df8f4fb92f3cb232bb6f1604248aa7dc375ee916c9ad459c052 |