Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Crypto
Crypto.Substitution

Method Crypto.Substitution()->set_ACA_K4_key()


Method set_ACA_K4_key

this_program set_ACA_K4_key(string key1, string key2, void|int offset, void|array(string) alphabet)

Description

Sets the key according to ACA K4 key generation. Both the plaintext and the cryptogram alphabets are prepended with the keywords key1 and key2 . The plaintext alphabet is then rotated offset number of steps.