Files
general-scripts-and-system-…/customscripts/randomtoken
T
2025-08-19 16:20:13 -06:00

4 lines
192 B
Bash

#!/bin/bash
# uses /dev/urandom for quality 128 random bits (16 bytes)
# hashed with sha256 then cleaned up with awk
dd if=/dev/urandom bs=1 count=16 status=none | sha256sum | awk '{print $1}'