Cryptography Challenge Lab
For this lab, you will be doing selected exercises from the Cryptopals Crypto Challenges site. Those challenges are focused on exposing the pitfalls of cryptography in a hands-on manner. You can implement the lab in any language you desire, although Python is the suggested language if you want instructor assistance.
For each problem, provide a source code file named in the following format:
For each problem, at the top of the source code file, provide a comment block explaining your solution in sufficient detail to be understandable to your peers. This is essential! Given the combined power of Google, GitHub, and Stack Overflow, demonstrating that you understand the code you are submitting is critical.
Python 3 setup instructions using PyCrypto library:
sudo apt-get install python3-pip sudo apt-get install python3 pip3 install --upgrade pip pip3 install pycrypto # sudo pip3 install --upgrade pycrypto # To upgrade PyCrypto later
Part 1 - Fundamental Skills
Do all 8 of the Crypto Challenges Set 1 exercises
- Convert hex to base64
- Fixed XOR
- Single-byte XOR cipher
- Detect single-character XOR
- Implement repeating-key XOR
- Break repeating-key XOR
- AES in ECB mode
- Detect AES in ECB mode