The matasano crypto challenges
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
1.txt
2.txt
3.txt
4.txt
5.txt
6.txt
7.txt
Makefile_s1c1
Makefile_s1c2
Makefile_s1c3
Makefile_s1c4
Makefile_s1c5
Makefile_s1c6
Makefile_s1c7
README.md
burn64.txt
defs.h
fixedxor.c
hamming.c
helpers.c
hexchartoint.c
hextobase64.c
printfile.c
s1c1.c
s1c2.c
s1c3.c
s1c4.c
s1c5.c
s1c6.c
s1c7.c
singlebytexorcipher.c
test.txt

README.md

cryptopals

This repository is my attempt at solving The matasano crypto challenges. For the unaware, matasano crypto challenges are a series of cryptography specific programming challenges aimed to teach you the concepts. A possibly better explanation can be found here.

I am trying to document my attempt on my website as well.

Convert hex to base64

make -f Makefile_s1c1
./s1c1.out ` < 1.txt `

Fixed XOR

make -f Makefile_s1c2
./s1c2.out ` < 2.txt `

Single-byte XOR cipher

make -f Makefile_s1c3
./s1c3.out ` < 3.txt `

Detect single-character XOR

make -f Makefile_s1c4
./s1c4.out ` < 4.txt `

Implement repeating-key XOR

make -f Makefile_s1c4
./s1c5.out "` < 5.txt `"