To prevent the RB from impersonating any communications coming from you to our team, we need to employ an extremely secure digital signature algorithm. One of the most secure signature algorithms out there is the one used for bitcoin and ehtereum. Using the same Elliptic Curve used for those cryptocurrency calculations, hash and send me the message “Establishing a Secure Connection… :)”. You also needed to provide me with the signature so that I can verify what was sent. The private key and other needed information is included in the file attached. Good luck agent!
Flag Format: jctf{hashedMessage, (r, s)}
Developed by: thatLoganGuy
Doing a little bit of research on secp256k1, I found this code that conveniently implemented both hashing and signing on this site. I copied it over, inputted the provided k and d values in the importantInfo file, and then printed out the hashed message and the signature!
Here’s the final implementation in SageMath:
1 | import hashlib |
jctf{92203552243314903564601756136392727305670902362574958506092449257750428695994, (42784428704930896814896284055412332781569391987226306258297947802774199755263, 99723013502393641250124885860099834181116092463181585132024741529004971627174)}