Initial commit of stable v1.0

This commit is contained in:
Ze'ev Schurmann
2026-06-06 21:36:42 +02:00
parent 19a17ff41d
commit c2e0244d05
12 changed files with 912 additions and 2 deletions

22
demo-makeotp.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
## zOTP Bash Demo for making a 6 digit OTP using Blake2 and being valid for 10 minutes
## Usage:
## ./demo-makeotp.sh "{string-unique-to-user}"
declare thesalt="zOTP by Ze'ev Schurmann"
source zotp.inc.sh
if [[ -z "${1}" ]]; then
echo "Usage:" >&2
echo " $0 \"{string-unique-to-user}\"" >&2
exit 1
fi
declare theseed="${1}"
variablename="$(newOTP b2)"
echo "OTP is ${variablename} it will expire at $(date -d "+10 minutes")"