Setup for Cracking NSA Ciphertext - simple substitution with Python

Опубликовано: 13 Май 2026
на канале: Learning Channel
593
4

This video shows detail of how to setup Python script to crack substation ciphers. It relates to an earlier video showing how the script was used to crack NSA tweet:
   • Cracking NSA Ciphertext - simple substitut...  

The Python script:
http://practicalcryptography.com/cryp...

Pycipher module installation for Python:
http://www.practicalcryptography.com/...

Github module:
https://github.com/jameslyons/pycipher

Additional files including language statistics:
http://practicalcryptography.com/cryp...

Selected commands:
502 mkdir cipher
503 cd cipher/
504 ls
505 vi break_affine.py
506 mv ../Downloads/english_quadgrams.txt.zip .
507 unzip english_quadgrams.txt.zip
508 ls
509 vi english_quadgrams.txt
511 mv english_quadgrams.txt quadgrams.txt
512 python break_affine.py
513 sudo su -
514 cd pycipher-0.5.0
515 python setup.py install



by Szymon Machajewski