45 encode(plainText:
string =
"", key1:
string =
"", key2?:
string):
string {
46 const firstKey = key1;
47 const secondKey = key2 ?? key1;
52 const firstPass = columnar1.encode(plainText, firstKey);
53 const secondPass = columnar2.encode(firstPass, secondKey);
67 decode(cipherText:
string =
"", key1:
string =
"", key2?:
string):
string {
68 const firstKey = key1;
69 const secondKey = key2 ?? key1;
74 const intermediate = columnar2.decode(cipherText, secondKey);
75 const finalText = columnar1.decode(intermediate, firstKey);