项目作者: paulofer

项目描述 :
This is a simple cryptographic tool based on caesar cipher algorithm.
高级语言: Python
项目地址: git://github.com/paulofer/Simple-Caesar-Cipher.git
创建时间: 2017-09-03T18:02:27Z
项目社区:https://github.com/paulofer/Simple-Caesar-Cipher

开源协议:

下载


Simple-Caesar-Cipher

  • This is a simple cryptographic tool based on caesar cipher algorithm.
  • I took out this example from the book: Hacking Secret Ciphers with Python - Invent with Python
  • I made a bit of change to the original version, by getting input from user.
  • pyperclip is a module created by the author of the book.
    The pyperclip file need to be in the same folder of the main file.

    This simple caesar cipher algorithm doesn’t encrypt non-letters.
    If a try to encrypt this string ‘In age of Bitcoin, countries will never have to rely on others to store their assets! 03-09-2017’
    with the key 4, it will encrypt to ‘MR EKI SJ FMXGSMR, GSYRXVMIW AMPP
    RIZIV LEZI XS VIPC SR SXLIVW XS WXSVI XLIMV EWWIXW! 03-09-2017’

    STEPS:

    • Write a sentence to be encrypted or decrypted;
    • Choose a key between 1 and 25;
    • Choose a mode: ‘encrypt’ or ‘decrypt’