Sampling of simple cipher systems to aid in understanding
Repo webpwnized/cryptography, read from GitHub 2 d ago. webpwnized has not joined Take My Repo.
webpwnized/cryptography is a public repo on GitHub by webpwnized. Sampling of simple cipher systems to aid in understanding. It declares the MIT license on GitHub. It is written mainly in Python, has 14 stars and last changed on 2018-01-25. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
An implementation of the shift cipher system. Each plaintext character is shifted the same number of bytes as determined by the key. The shift occurs with respect to the modulus.
Usage: python shifty.py [-h] (-e | -d) (-k KEY | -b) [-if {character,binary,base64}] [-of {character,binary,base64}] [-m MODULUS] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY or
BRUTEFORCE flag.
-k KEY, --key KEY Encryption/Decription key
-b, --bruteforce Rather than decrypt with KEY, try to brute force the
plaintext.
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64
-m MODULUS, --modulus MODULUS
Modulus. Default is 256.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the word hello with ceasar cipher:
python shifty.py --encrypt --key 3 --verbose hello
Decrypt the world hello with key 3:
python shifty.py --decrypt --key 3 khoor
Bruteforce the world hello with key 3:
python shifty.py --decrypt --bruteforce khoor
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file binary-input.txt:
python shifty.py --encrypt --key 3 --input-format=binary --output-format=binary --input-file binary-input.txt > binary-output.bin
An implementation of the affine cipher system. A key is provided as a vector of two integers. The key integers a,b determine the shift of each byte of the plaintext by the formula ax + b modulo MODULUS. The shifts occurs with respect to the modulus.
Usage: python affinity.py [-h] (-e | -d) [-k KEY] [-if {character,binary,base64}] [-of {character,binary,base64}] [-m MODULUS] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY or
BRUTEFORCE flag.
-k KEY, --key KEY Encryption/Decryption key in a,b format
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64
-m MODULUS, --modulus MODULUS
Modulus. Default is 256.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the word hello with key 3,1:
python affinity.py --encrypt --key 3,1 --verbose "hello"
Decrypt the world hello with key 3,1:
python affinity.py --decrypt --key 3,1 --verbose "90EEN"
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file funny-cat-1.jpg:
python affinity.py --encrypt --key 3,1 --input-format=binary --output-format=binary --input-file funny-cat-1.jpg > encrypted-funny-cat-1.bin
An implementation of the vigenere cipher system. A key is provided. Each byte of the key shifts the respective byte of plaintext. If the plaintext is longer than the key, the key bytes start over. The key derivation normalizes the key weakening the cipher. For example, A = a = 1 = shift plaintext 1 byte. The shifts occurs with respect to the modulus.
Usage: python visionary.py [-h] (-e | -d) -k KEY [-if {character,binary,base64}] [-of {character,binary,base64}] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY or
BRUTEFORCE flag.
-k KEY, --key KEY Encryption/Decryption key
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64
-m MODULUS, --modulus MODULUS
Modulus. Default is 256.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the phrase helloworld with key 12345:
python visionary.py --encrypt --key 12345 --verbose "helloworld"
Decrypt the phrase helloworld with key 12345:
python visionary.py --decrypt --key 12345 "igoptxqupi"
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file funny-cat-1.jpg:
python visionary.py --encrypt --key rocky329 --input-format=binary --output-format=binary --input-file=funny-cat-1.jpg > encrypted-funny-cat-1.bin
An implementation of Substitution Cipher
Usage: python substitute.py [-h] (-e | -d) -k KEY [-if {character,binary,base64}] [-of {character,binary,base64}] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY.
-k KEY, --key KEY Encryption/Decryption key
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64. If
input format provided, but output format is not
provided, output format defaults to match input
format.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the phrase helloworld with key 3,2,0,1,4:
python substitute.py --encrypt --key 3,2,0,1,4 --verbose helloworld
Decrypt the phrase helloworld with key 3,2,0,1,4:
python substitute.py --decrypt --key 3,2,0,1,4 --verbose llheolrwod
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file binary-input.txt:
python substitute.py --encrypt --key 3,2,0,1,4 --input-format=binary --output-format=binary --input-file=binary-input.txt > encrypted-binary-input.bin
An implementation of the Hill cipher system
Usage: python hilarity.py [-h] (-e | -d) -k KEY [-if {character,binary,base64}] [-of {character,binary,base64}] [-m MODULUS] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY or
BRUTEFORCE flag.
-k KEY, --key KEY Encryption/Decryption key of integers in matrix
format. The matrix must be square. For example a 2 X 2
matrix could be 1, 2, 3, 4
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64. If
input format provided, but output format is not
provided, output format defaults to match input
format.
-m MODULUS, --modulus MODULUS
Modulus. Default is 256.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the phrase helloworld with key 7,11,3,8:
python hilarity.py --encrypt --key 7,11,3,8 helloworld
Decrypt the phrase helloworld with key 7,11,3,8:
python hilarity.py --decrypt --key 7,11,3,8 --input-format=base64 B6A4BG59X1UgxA==
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file binary-input.txt:
python hilarity.py --encrypt --key 7,11,3,8 --input-format=binary --output-format=binary --input-file=binary-input.txt > encrypted-binary-input.bin
An implementation of the css cipher system using two linear feedback shift registers
Usage: content-scrambing-system.py [-h] (-e | -d) [-k KEY] [-if {character,binary,base64}] [-of {character,binary,base64}] [-v] [-i INPUT_FILE] [INPUT]
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
-h, --help show this help message and exit
-e, --encrypt Encrypt INPUT. This option requires a KEY.
-d, --decrypt Decrypt INPUT. This option requires a KEY.
-k KEY, --key KEY Encryption/Decryption key. Must be 5 bytes. Enter the
bytes as a list of comma-delimited integers between
0-255. Example: 25,230,3,64,12
-if {character,binary,base64}, --input-format {character,binary,base64}
Input format can be character, binary, or base64
-of {character,binary,base64}, --output-format {character,binary,base64}
Output format can be character, binary, or base64. If
input format provided, but output format is not
provided, output format defaults to match input
format.
-v, --verbose Enables verbose output
-i INPUT_FILE, --input-file INPUT_FILE
Read INPUT from an input file
Encrypt the phrase helloworld with key 25,230,3,64,12:
python content-scrambing-system.py --encrypt --key 25,230,3,64,12 --verbose helloworld
Decrypt the phrase helloworld with key 25,230,3,64,12:
python content-scrambing-system.py --decrypt --key 25,230,3,64,12 --input-format=base64 --output-format=character wr8B+CWpEqgqAw==
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Encrypt the contents of file binary-input.txt:
python content-scrambing-system.py --encrypt --key 25,230,3,64,12 --input-format=binary --output-format=binary --input-file=test-files\binary-input.txt > encrypted-binary-input.bin
Example using input from file, redirecting output to file and working with binary input. Combine these features to suit. Decrypt the contents of file encrypted-binary-input.bin:
python content-scrambing-system.py --decrypt --key 25,230,3,64,12 --input-format=binary --output-format=character --input-file=encrypted-binary-input.bin
Usage: rsa.py [-h] [-e | -d] [-k KEY] [-if {character,binary,base64}] [-of {character,binary,base64}] [-b BLOCKSIZE] [-m MODULUS] [-np NEXT_PRIME] [-sp SUGGEST_PRIMES] [-ip IS_PRIME] [-c CALCULATE_PRIVATE_KEY] [-v] [-i INPUT_FILE] [INPUT]
RSA Training Tool: An implementation of the RSA cipher system. Each plaintext character is transformed into cipher text by converting the plaintext into a numeric value, then raising that value to a power (determined by the public key) modulo modulus. Decryption is done by raising the numeric value of the cipher text to a power (determined by the private key) modulo a modulus.
Required arguments:
INPUT Input value to encrypt/decrypt
Optional arguments:
webpwnized/cryptography is a public repo on GitHub by webpwnized. Sampling of simple cipher systems to aid in understanding.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2018-01-25. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run cryptography. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2018-01-25. It has 14 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.