skills: cloudron.md records pointer

This commit is contained in:
TSYS Group COO
2026-09-08 06:03:06 -05:00
parent 814188e582
commit 1a1a7ca581
6 changed files with 230 additions and 81 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ COUNTER=$(printf '%016x' $(( NOW / STEP )))
# bash vars cannot hold null bytes - keep the counter as a FORMAT string and
# let printf emit the raw bytes straight into the pipe.
FMT=$(printf '%s' "$COUNTER" | sed 's/../\\x&/g')
# intentional: FMT emits raw counter bytes incl. NULs - the whole point
# shellcheck disable=SC2059
# intentional: FMT emits raw counter bytes (NULs) - the whole point
# shellcheck disable=SC2059
MAC=$(printf "$FMT" | openssl dgst -sha1 -mac HMAC -macopt "hexkey:$KEYHEX" -binary \
| od -An -tx1 | tr -d ' \n')
OFFSET=$(( 0x${MAC: -1} ))