https://github.com/coderatul/caesar-cipher
caeser cipher using python
https://github.com/coderatul/caesar-cipher
ceaser-cipher cryptography encryption good-first-issue hacktoberfest
Last synced: 17 days ago
JSON representation
caeser cipher using python
- Host: GitHub
- URL: https://github.com/coderatul/caesar-cipher
- Owner: coderatul
- Created: 2022-01-29T20:45:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T14:51:16.000Z (about 4 years ago)
- Last Synced: 2025-09-05T08:37:42.295Z (6 months ago)
- Topics: ceaser-cipher, cryptography, encryption, good-first-issue, hacktoberfest
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Caesar Cipher
- 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.
- example
```
plain text : atul is coder
cipher txt : dwxo lv frghu
if shifted 3 characters to right
```
- The encryption can also be represented using modular arithmetic by first transforming the letters into numbers, according to the scheme, A → 0, B → 1, ..., Z → 25. Encryption of a letter x by a shift n can be described mathematically as
```
encryption(x) = (x + n) % 26
```
- Decryption is performed similarly,
```
decyption(x) = (x - n) % 26