From ee1c33632b8961f0f5da23674f528a8c1b48f190 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 16 Apr 2026 18:39:17 -0700 Subject: [PATCH] et-auth-table - Added a script to generate an authentication table. This was used during the T-Rex Labs collaboration video. --- overlay/opt/emcomm-tools/bin/et-auth-table.sh | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 overlay/opt/emcomm-tools/bin/et-auth-table.sh diff --git a/overlay/opt/emcomm-tools/bin/et-auth-table.sh b/overlay/opt/emcomm-tools/bin/et-auth-table.sh new file mode 100755 index 0000000..5a0b94e --- /dev/null +++ b/overlay/opt/emcomm-tools/bin/et-auth-table.sh @@ -0,0 +1,23 @@ +#/bin/bash +# Author : Gaston Gonzalez +# Date : 7 January 2025 +# Purpose : Generates an authentication table + +top=( {A..M} ) +side=( {N..Z} ) +chars=( {A..Z} {0..9} ) + +printf "%2s " "" +for col in "${top[@]}"; do + printf "%2s " "$col" +done +printf "\n" + +for row in "${side[@]}"; do + printf "%2s " "$row" + for col in "${top[@]}"; do + rand_index=$(( RANDOM % ${#chars[@]} )) + printf "%2s " "${chars[$rand_index]}" + done + printf "\n" +done