summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-14 16:08:07 -0400
committersiddharth <s@ricketyspace.net>2022-05-14 16:08:07 -0400
commit4a702f75ff1ee09f2bcca32e7fadcef84b197118 (patch)
tree154e946d5512b40a3e100c21c8d2c61e482d7764
parent36b724b404ec8a02c807767edd6c50293680b86b (diff)
challenge: finish challenge 36HEADv0.36.0master
-rw-r--r--challenge/c36.go29
-rw-r--r--lib/srp.go20
2 files changed, 29 insertions, 20 deletions
diff --git a/challenge/c36.go b/challenge/c36.go
index 67c4f1e..97ca150 100644
--- a/challenge/c36.go
+++ b/challenge/c36.go
@@ -443,3 +443,32 @@ func C36(args []string) {
fmt.Println("uknown entity")
}
}
+
+// Output:
+//
+// https://ricketyspace.net/cryptopals/c36.webm
+//
+// ./cryptopals -c 36 server 12000
+// Waiting for connection...
+// Waiting for connection...
+// Got connection from 127.0.0.1:39024
+// Waiting for connection...
+// Got connection from 127.0.0.1:28151
+// Waiting for connection...
+// Got connection from 127.0.0.1:46956
+// Waiting for connection...
+// Got connection from 127.0.0.1:3699
+//
+// ./cryptopals -c 36 client 12000
+// > register bob
+// password> theonjoy
+// Registered!
+// > login bob
+// password> theonjoy
+// Logged in!
+// bob> logout
+// Logged out!
+// > login bob
+// password> theon
+// Login failed: login failed: hmac verification failed
+// > ^C
diff --git a/lib/srp.go b/lib/srp.go
index 18cf5dd..1ded011 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -8,26 +8,6 @@ import "math/big"
// SRP - implementation.
// Reference http://srp.stanford.edu/design.html
-// SRP Client UI - Spec
-//
-// > register s@ricketyspace.net
-// Enter password
-// > ******
-// Registering with server...registered!
-// > login s@ricketyspace.net
-// Enter password
-// > ******
-// Logging in...in!
-// s@ricketyspace.net>
-// s@ricketyspace.net> login s@ricketyspace.net
-// login command not allowed when logged in
-// s@ricketyspace.net> register rsd@gnu.org
-// register command not allowed when logged in
-// s@ricketyspace.net> logout
-// Logging out..out!
-// > register s@ricketyspace.net
-// Already registered!
-
// SRP Server.
type SRPServer struct {
users []*SRPUser