Upgrade to Pro — share decks privately, control downloads, hide ads and more …

classical ciphersin python

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

classical ciphersin python

classical ciphersin python

Avatar for wwwy3y3

wwwy3y3

May 18, 2014
Tweet

More Decks by wwwy3y3

Other Decks in Programming

Transcript

  1. classical_ciphers • pip install classical_ciphers • github: /wwwy3y3/ciphers • help

    you understand classical ciphers • DO NOT USE FOR PRODUCTION!!
  2. monoalphabetic -keyword • keyword: william -> wilam • encrypter.keyword(‘william’) •

    plaintext ABCDEFGHIJKLMNOPQRSTUVWXYZ • ciphertext WILAMBCDEFGHJKNOPQRSTUVXYZ
  3. polyalphabetic • keyword: snake -> 9, 14, 1, 11, 15

    • plaintext HELLO HOW ARE YOU • -> 8-5-12-12-15 -8-15-23-1-18 -5 25-15-21 • ->19-14-1-11-5 -19-14-1-11-5- 19-14-1-11 • add up -> your ciphertext! • encrypter.poly(‘william’)
  4. transposition • plaintext: hello how are you • window size=3!

    • ciphertext: hloro eoweu lhay • WHY? • letter frequency h e l l o h o w a r e y o u