https://github.com/p3t3r67x0/vigenere_cipher
Simple programm to encrypt or decrypt a vigenere cipher text. This tool might be handy for some CTF games.
https://github.com/p3t3r67x0/vigenere_cipher
crypto cryptography ctf ctf-tools python vigenere-cipher
Last synced: 3 months ago
JSON representation
Simple programm to encrypt or decrypt a vigenere cipher text. This tool might be handy for some CTF games.
- Host: GitHub
- URL: https://github.com/p3t3r67x0/vigenere_cipher
- Owner: p3t3r67x0
- License: mit
- Created: 2019-03-20T18:17:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T18:41:36.000Z (over 6 years ago)
- Last Synced: 2025-07-14T20:53:34.686Z (3 months ago)
- Topics: crypto, cryptography, ctf, ctf-tools, python, vigenere-cipher
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vigenere.py
Simple programm to encrypt or decrypt a vigenere cipher text.
You have multiple choices running this programm, wether you like to read from STDIN or from FILE and wether you like to write to STDOUT or to FILE. Here I will show you a few examples, how to proper use this programm. When you want to decrypt a cipher text you can run the following example:
This will decrypt and write the cipher text to STDOUT and read the plain text from STDIN.
```
echo '' | ./vigenere.py -d -k -o - -i -
```This will encrypt and write the cipher text to STDOUT and read the plain text from FILE.
```
./vigenere.py -e -k -o - -i
```This will decrypt and write the cipher text to FILE and read the plain text from FILE.
```
./vigenere.py -d -k -o -i
```If you are about to see the help message you run `./vigenere.py --help`, and there you go.
```
usage: vigenere.py [-h] [-d, --decrypt] [-e, --encrypt] -k, --key KEY
[-i, --in [INPUT]] [-o, --out [OUTPUT]]Encrypt or decrypt a vigenere cipher text
optional arguments:
-h, --help show this help message and exit
-d, --decrypt set flag to decrypt given cipher text
-e, --encrypt set flag to encrypt given plain text
-k, --key KEY set key as argument, this is required
-i, --in [INPUT] string from stdin or from file
-o, --out [OUTPUT] result defaults to stdout or specify a fileAnd that's how you'd run this prgramm. You have multiple choices running this programm,
wether you like to read from STDIN or from FILE and wether you like to write to STDOUT
or to FILE. Here I will show you a few examples, how to proper use this programm. When
you want to decrypt a cipher text you can run the following example:This will decrypt and write the cipher text to STDOUT and read the plain text from STDIN.
echo '' | ./vigenere.py -d -k -o - -i -This will encrypt and write the cipher text to STDOUT and read the plain text from FILE.
./vigenere.py -e -k -o - -iThis will decrypt and write the cipher text to FILE and read the plain text from FILE.
./vigenere.py -d -k -o -i
```