The Reused Nonce
hard · 250 XP · flag · free · solves: 1
Alice signs every authorisation in the system with her private key, and Victor checks each signature before he lets a request through. The scheme is strong, as long as one rule is followed: every signature needs a fresh random number. Eve collected a bundle of signed messages from the authentication logs and noticed that two of them shared the same random value. One repeated number is enough to work backwards to the private key itself. Can you recover Alice's key from the two signatures?
implement ECDSA from scratch over secp256k1 (real curve parameters — verify the generator point is actually on the curve before using it!)
Tags: Cryptography
Try next
- A Centuries-Old Message (easy)
- The Board Nobody Read (easy)
- Trail of Ciphers (easy)