案例
Example keys and passwords are public test material.
key has to be bigger than 2
输入
Cryptography is THE Art of Writing or solving codesExpected rejection
Message containsKey has to be bigger than 2- 密钥
1- 偏移量
0
key has to be smaller than input's length
输入
shortinputExpected rejection
Message containsKey should be smaller than the plain text's length- 密钥
22- 偏移量
0
normal
输入
Cryptography is THE Art of Writing or solving codesExpected answer
Cytgah sTEAto rtn rsligcdsrporpyi H r fWiigo ovn oeCytgah sTEAto rtn rsligcdsrporpyi H r fWiigo ovn oe
- 密钥
2- 偏移量
0
Normal with Offset non-null
输入
12345678901234567890Expected answer
5174602681379359284051746026813793592840
- 密钥
4- 偏移量
2
Normal with Offset with Spaces
输入
No one expects the spanish Inquisition.Expected answer
e n ut.ooeepcstesaihIqiiinNnxthpsnsoe n ut.ooeepcstesaihIqiiinNnxthpsnso
- 密钥
3- 偏移量
2
offset should be positive
输入
shortinputExpected rejection
Message containsOffset has to be a positive integer- 密钥
2- 偏移量
-1