update for AC
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
curl -sS -X POST http://127.0.0.1:8000/encrypt \
|
||||
-H "Content-Type: application/json" \
|
||||
--data-binary @encrypt.json \
|
||||
| tee decrypt.json \
|
||||
| jq -n --arg u "alice" --arg p "correct horse battery staple" --argfile ciphertext /dev/stdin \
|
||||
'{username:$u, password:$p, ciphertext:$ciphertext}' \
|
||||
| curl -sS -X POST http://127.0.0.1:8000/decrypt -H "Content-Type: application/json" --data-binary @-
|
||||
Reference in New Issue
Block a user