summaryrefslogtreecommitdiff
path: root/3544/CH2/EX2.14/Ex2_14.sce
blob: b50e3695a87c9992533adb19a2a1fa5801ce4591 (plain)
1
2
3
4
5
6
7
8
9
10

//Polygram substitution

pt = ["HELLO" "HELL"]
ct = ["YUQQW" "TEUI"]

for i=1:length(length(pt))
    printf("Plaintext: %s\n",pt(1,i))
    printf("Ciphertext: %s\n\n",ct(1,i))
end