aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-15 02:47:02 +0200
committerDrNuget <drnuget@outlook.com>2025-11-15 02:47:02 +0200
commit89ddb8ac56b810c53844b831fcb1014b11161ba2 (patch)
treea7c6397694495cd1204ad9a39959fc4d64386744
parent85f1a86a95f5639dee1c615fe3d51e0821cb124a (diff)
downloadscripts-89ddb8ac56b810c53844b831fcb1014b11161ba2.tar.gz
ROT fix alphabet range to include z
-rwxr-xr-xscripts/rot2
1 files changed, 1 insertions, 1 deletions
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];