An open API service indexing awesome lists of open source software.

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.

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 file

And 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 - -i

This will decrypt and write the cipher text to FILE and read the plain text from FILE.
./vigenere.py -d -k -o -i
```