Cryptography

Challenge
Link

KeySharer (50 pts)

Random RSA (50 pts)

Vigenere-CBC (50 pts)

Choices (460 pts)

KeySharer (50 pts)

Description

Solution

Random RSA (50 pts)

Description

RSA is really simple, there can't be any mistakes, right?

Solution

Given code below

getPrime function generate random number using random.getrandbits and if random number is prime it will be returned from the function. random.getrandbits is not secure random generator, we can predict next value if we have 624 * 32 bits number generated by getrandbits. So in this case, because we know random number generated from getrandbits we can regenerate the p and q and decrypt the ciphertext. Since randcrack need 32 bits value so we submit each value received from the server in 32 bit format. Here is my solve script

Flag : EPFL{w0w_s0_much_r4nd000o0oo0om}

Vigenere-CBC (50 pts)

Description

Solution

Choices (460 pts)

Description

Solution

Last updated