Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

Caesar-Shift

Python libary for Caesar-Shift encrypting, decrypting and automatical cracking

Features

  • Encrypting/Decrypting using shift values
  • Automatical cracking of Caesar cipher

Example using a German sentence

from caesarshift import shift, decrypt

# Generate Cipher with a shift-value of 13
cipher = shift(plaintext, -13, True)

# Decrypt Cipher
common_german_words = ('der', 'die', 'das', 'ein', 'ich', 'zu', 'von', 'und', 'kann', 'den', 'dies', 'mit')
decrypt_result = decrypt(cipher, common_german_words, 3)
print("shift-value: " + str(decrypt_result[1][0][0]))
print("plaintext: " + decrypt_result[0])

About

Python libary for Caesar-Shift encryption, decryption and automatical cracking

Topics

Resources

Languages

You can’t perform that action at this time.