Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Caesar-cipher/Pike/caesar-cipher.pike
Normal file
8
Task/Caesar-cipher/Pike/caesar-cipher.pike
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
object c = Crypto.Substitution()->set_rot_key(2);
|
||||
string msg = "The quick brown fox jumped over the lazy dogs";
|
||||
string msg_s2 = c->encrypt(msg);
|
||||
c->set_rot_key(11);
|
||||
string msg_s11 = c->encrypt(msg);
|
||||
string decoded = c->decrypt(msg_s11);
|
||||
|
||||
write("%s\n%s\n%s\n%s\n", msg, msg_s2, msg_s11, decoded);
|
||||
Loading…
Add table
Add a link
Reference in a new issue