Presence
Lib and tool to generate short discrete presence tokens.
The token can be verified for validity in a certain time range, but otherwise appears random and is plausibly deniable. This should be good for privacy!
Anatomy
The token shall be conveyed in a upper-hex string or in binary 8 bytes array.
The first 4 bytes is a sha256 hash of the salt upper-hex + the unix timestamp decimal string.
The other 4 bytes is the random salt.
CLI
The companion CLI tool will verify or generate presence tokens.
Install:
Usage:
# generate a new token
# or a few
# check a token
# also works with stdin when no args are given
|
# and you can use stdin to also generate tokens with empty line
|