Git hosting

cryptopals: Solutions to the cryptopals crypto challenges in Ruby

Files

Size Path
..
349 01.el
442 01.md
278 01.rb
339 02.el
366 02.md
251 02.rb
520 03.el
537 03.md
396 03.rb
908 04.el
211 04.md
438 04.rb
19945 04.txt
440 05.el
817 05.md
394 05.rb
2112 06.el
2308 06.md
1370 06.rb
3900 06.txt
331 07.el
663 07.md
168 07.rb
3904 07.txt
824 08.el
341 08.md
341 08.rb
65484 08.txt
1221 README.md

README.md

Crypto Challenge Set 1

This is the qualifying set. We picked the exercises in it to ramp developers up gradually into coding cryptography, but also to verify that we were working with people who were ready to write code.

This set is relatively easy. With one exception, most of these exercises should take only a couple minutes. But don't beat yourself up if it takes longer than that. It took Alex two weeks to get through the set!

If you've written any crypto code in the past, you're going to feel like skipping a lot of this. Don't skip them. At least two of them (we won't say which) are important stepping stones to later attacks.

  1. Convert hex to base64
  2. Fixed XOR
  3. Single-byte XOR cipher
  4. Detect single-character XOR
  5. Implement repeating-key XOR
  6. Break repeating-key XOR
  7. AES in ECB mode
  8. Detect AES in ECB mode