Home easyCTF 2015 Known Plaintext1
Writeup
Cancel

Known Plaintext1

Challenge
Solve the problem using the programming interface. The input file is knownplaintext1.in.

The input is formatted [d/e] . The first character specifies whether the assignment is to encrypt or to decrypt, and the string is either the plaintext or the ciphertext, depending on the first letter.

Solution
No idea what kind of encryption/decryption they want, but when we simply output the input we get:

1
2
3
4
5
6
7
8
 Test 1 wrong.

Program input:
"e Qqb:u6%<'\tm\x0b!OE=5;\n`N{PNm?.x*}$R"
Expected output:
'5272633b7637263d280:6e0c224g463e363c0b614f7c514f6e3g2f792b7e2553'
Your program output:
"e Qqb:u6%<'\tm\x0b!OE=5;\n"

Flag

Test 1 wrong. Program input: "e Qqb:u6%<'\tm\x0b!OE=5;\n`N{PNm?.x*}$R" Expected output: '5272633b7637263d280:6e0c224g463e363c0b614f7c514f6e3g2f792b7e2553' Your program output: "e Qqb:u6%<'\tm\x0b!OE=5;\n"