Somewhat lightweight auth for simple usage counting. Could do with some locking really, but fit for this purpose.

This commit is contained in:
stevenhowes
2025-02-22 21:22:33 +00:00
parent 910ff909b1
commit 9397e13e5a
3 changed files with 71 additions and 13 deletions
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
TOKEN=`uuidgen`
echo $TOKEN
MD5=`echo -n $TOKEN | md5sum | awk '{ print $1 }'`
echo $MD5
echo -n 0 > keys/$MD5