From 89ddb8ac56b810c53844b831fcb1014b11161ba2 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sat, 15 Nov 2025 02:47:02 +0200 Subject: ROT fix alphabet range to include z --- scripts/rot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rot b/scripts/rot index fed5c67..627ef62 100755 --- a/scripts/rot +++ b/scripts/rot @@ -25,7 +25,7 @@ BEGIN { alph[2]="abcdefghijklmnopqrstuvwxyz" for (j=1;j<=2;j++) { cipher=substr(alph[j], rot+1) substr(alph[j], 1, rot); - for (i=0;i<26;i++) { + for (i=0;i<=26;i++) { split(alph[j], chars, ""); split(cipher, cipher_chars, ""); cipher_map[chars[i]]=cipher_chars[i]; -- cgit v1.2.3