問題文
The one time pad can be cryptographically secure, but not when you know the key. Can you solve this? We've given you the encrypted flag, key, and a table to help UFJKXQZQUNB with the key of SOLVECRYPTO. Can you use this table to solve it?.
考えたこと
table.txt
というファイルがあり、アルファベットの表のようなものがある。
どこかで見覚えがあったので、次の本で調べてみると、どうやらウィジュネル暗号というものらしい。
鍵の文字の列を見て、次に平文の文字の行を見て、交差するところの文字が暗号文の文字になるらしい。
解答
表を生成して、手作業でやるのと同じ要領をプログラムとして実装してみた。