Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

cat: ciphertext.txt: No such file or directory
./c2: option '--decrypt' requires an argument
cat: plaintext.txt: No such file or directory
diff: ciphertext.txt: No such file or directory

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 255, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

generate a test_key
test encryption and decryption
thisismyplaintext

thisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintext

thisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintext

thisismyplaintextfordefaultkey

ThisTestsAlphabetABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,.;?!()


test the cipher is right
run failed

JOJ Answer

generate a test_key
test encryption and decryption
thisismyplaintext
thisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintext
thisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintextthisismyplaintext
thisismyplaintextfordefaultkey
ThisTestsAlphabetABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,.;?!()
cheater: it is forbidden to decrypt the challenge ciphertext

test the cipher is right