diffie problem
This commit is contained in:
parent
28fdcaee74
commit
febcc473f1
4 changed files with 17 additions and 0 deletions
1
diffie-cult/description.md
Normal file
1
diffie-cult/description.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
I just intercepted some odd [messages.txt](${messages}). It appears to be a Diffie-hellman protocol, but my math isn't good enough to figure out what the final shared key is. Help! (The answer is a number. There is no `easyctf{}`)
|
4
diffie-cult/grader.py
Normal file
4
diffie-cult/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
def grade(autogen, answer):
|
||||||
|
if answer == ("421049228295820"):
|
||||||
|
return True, "Correct!"
|
||||||
|
return False, "Nope, try again."
|
3
diffie-cult/messages.txt
Normal file
3
diffie-cult/messages.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
g^a mod p = 421049228295820
|
||||||
|
g^b mod p = 105262307073955
|
||||||
|
p=442101689710611
|
9
diffie-cult/problem.yml
Normal file
9
diffie-cult/problem.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
title: Diffie-cult
|
||||||
|
author: nicebowlofsoup
|
||||||
|
hint: Wikipedia explains Diffie-hellman pretty well. There is a also a very easy way to do this.
|
||||||
|
category: Cryptography
|
||||||
|
autogen: false
|
||||||
|
programming: false
|
||||||
|
value: 50
|
||||||
|
files:
|
||||||
|
- messages.txt
|
Loading…
Reference in a new issue