Cryptopals is a collection of 48 exercises that demonstrate attacks on real world ciphers and protocols. Exercises exploit both badly designed systems and subtle implementation bugs in theoretically rock solid crypto. The exercises and official solutions are now publically available on their official site, my write up about doing them is on my blog.
This repository contains my solutions to those exercises. All solutions are stored inside the org.meri.matasano
package in classes named SetX
where X
is the exercises set number. Some of the exercises required explanation or description, I wrote them inside javadoc comments in solution class. Solutions are run from unit tests. Each set of exercises has its own setX
directory and unit test named SetXTest
.
Links to solutions as they were when I finished them.
Set 1:
- Solution class:
src\main\java\org\meri\matasano\Set1.java
- Test case:
src\test\java\org\meri\matasano\set1\Set1Test.java
Set 2:
- Solution class:
src\main\java\org\meri\matasano\Set2.java
- Test case:
src\test\java\org\meri\matasano\set2\Set2Test.java
Set 3:
- Solution class:
src\main\java\org\meri\matasano\Set3.java
- Test case:
src\test\java\org\meri\matasano\set3\Set3Test.java
Set 4:
- Solution class:
src\main\java\org\meri\matasano\Set4.java
- Test case:
src\test\java\org\meri\matasano\set4\Set4Test.java
Set 5:
- Solution class:
src\main\java\org\meri\matasano\Set5.java
- Test case:
src\test\java\org\meri\matasano\set5\Set5Test.java
Set 6:
- Solution class:
src\main\java\org\meri\matasano\Set6.java
- Test case:
src\test\java\org\meri\matasano\set6\Set6Test.java