https://github.com/nakidai/caesar
Simple caesar cipher implementation
https://github.com/nakidai/caesar
caesar-cipher python simple
Last synced: 3 months ago
JSON representation
Simple caesar cipher implementation
- Host: GitHub
- URL: https://github.com/nakidai/caesar
- Owner: nakidai
- License: bsd-2-clause
- Created: 2024-07-23T20:31:33.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T22:27:27.000Z (11 months ago)
- Last Synced: 2024-07-25T00:27:51.029Z (11 months ago)
- Topics: caesar-cipher, python, simple
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Caesar cipher
--
Usage is pretty simple: first argument is encode/decode (which affects the sign
of the key (direction of moves)), second argument is the string which is hashed
by summation characters and taking remainder of division by length of the
alphabet. You can set your own alphabet by setting CAESAR\_ALPHABET environment
variable. Pass text you want to encrypt/decrypt in stdin and result will be
shown in stdout.Example
--
```
$ echo "helloworld" | python main.py encode 123abc
jgnnqyqtnf
```