add netip password hash generator

pull/1881/head
cronyx 2025-09-12 14:25:34 +03:00
parent af4557fad2
commit bf3557dfd1
2 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,10 @@ case "$CMD" in
echo -e " recorded - $(fw_printenv -n sensor)\n"
;;
netip_hash)
echo -n "$@" | md5sum | fold -w 2 | awk 'NR<17{printf "%d\n", "0x"$0}' | sed 'N;s/\n/ /' | awk '{c=($1+$2)%62; if (c<10) c+=48; else if (c<36) c+=55; else c+=61; printf "%c", c}'
;;
*)
;;
esac

View File

@ -0,0 +1 @@
extutils