cryptopals

module
v0.0.0-...-43498e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause

README

Directories

Path Synopsis
challenges
01 command
Convert hex to base64
Convert hex to base64
02 command
Fixed XOR: Write a function that takes two equal-length buffers and produces their XOR combination.
Fixed XOR: Write a function that takes two equal-length buffers and produces their XOR combination.
03 command
Single-byte XOR cipher
Single-byte XOR cipher
04 command
Detect single-character XOR
Detect single-character XOR
05 command
Implement repeating-key XOR
Implement repeating-key XOR
06 command
Break repeating-key XOR
Break repeating-key XOR
07 command
AES in ECB mode
AES in ECB mode
08 command
Detect AES in ECB mode
Detect AES in ECB mode
09 command
Implement PKCS#7 padding
Implement PKCS#7 padding
10 command
Implement CBC mode
Implement CBC mode
11 command
An ECB/CBC detection oracle
An ECB/CBC detection oracle
12 command
Byte-at-a-time ECB decryption (Simple)
Byte-at-a-time ECB decryption (Simple)
13 command
ECB cut-and-paste
ECB cut-and-paste
14 command
Byte-at-a-time ECB decryption (Harder)
Byte-at-a-time ECB decryption (Harder)
15 command
PKCS#7 padding validation
PKCS#7 padding validation
16 command
CBC bitflipping attacks
CBC bitflipping attacks
17 command
The CBC padding oracle
The CBC padding oracle
18 command
Implement CTR, the stream cipher mode
Implement CTR, the stream cipher mode
19 command
Break fixed-nonce CTR mode using substitutions
Break fixed-nonce CTR mode using substitutions
20 command
Break fixed-nonce CTR statistically
Break fixed-nonce CTR statistically
21 command
Implement the MT19937 Mersenne Twister RNG
Implement the MT19937 Mersenne Twister RNG
22 command
Crack an MT19937 seed
Crack an MT19937 seed
23 command
Clone an MT19937 RNG from its output
Clone an MT19937 RNG from its output
24 command
Create the MT19937 stream cipher and break it
Create the MT19937 stream cipher and break it
25 command
Break "random access read/write" AES CTR
Break "random access read/write" AES CTR
26 command
CTR bitflipping
CTR bitflipping
27 command
Recover the key from CBC with IV=Key
Recover the key from CBC with IV=Key
28 command
Implement a SHA-1 keyed MAC
Implement a SHA-1 keyed MAC
29 command
Break a SHA-1 keyed MAC using length extension
Break a SHA-1 keyed MAC using length extension
30 command
Break an MD4 keyed MAC using length extension
Break an MD4 keyed MAC using length extension
31 command
Implement and break HMAC-SHA1 with an artificial timing leak
Implement and break HMAC-SHA1 with an artificial timing leak
32 command
Break HMAC-SHA1 with a slightly less artificial timing leak
Break HMAC-SHA1 with a slightly less artificial timing leak
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Package sha1 implements the SHA-1 hash algorithm as defined in RFC 3174.
Package sha1 implements the SHA-1 hash algorithm as defined in RFC 3174.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL