mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-auth-table - Added a script to generate an authentication table. This was used during the T-Rex Labs collaboration video.
This commit is contained in:
+23
@@ -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
|
||||||
Reference in New Issue
Block a user