API Key authentication based on UNIX epoch (an integer). Copy get_hmac_sha256.py
and
username_host.json
into the same directory. Set ACCESSKEY and SECRETKEY as environment variables in the shell from which this script is run.
Then running the following in a shell
export ACCESS=1234
export SECRETKEY=abc123
python3 get_hmac_sha256.py
should return
2020-02-24 12:29:51,359 - Generating a base 64 hash from a HMAC SHA256
2020-02-24 12:29:51,359 - Message is: 1234john.doe1582575857some.domainname.com
2020-02-24 12:29:51,359 - Signature: 7zqGhpu1s8WAiRbnsjjF+YQJXCgwIwf+RerldlYpMMI=
2020-02-24 12:29:51,359 - Timestamp is: 1582575857
(timestamps of log messages will differ, of course)