Computes a string hash with HMAC-SHA256 or SipHash and a key — a string (–key) or a hexadecimal value (–hexkey).
Useful where values are compared by hash — for example, to check a value computed by another system with the same algorithm and key.
The limits are named in the manual: the algorithms and the key forms are mutually exclusive; for SipHash the key is up to 16 bytes — a shorter one is padded with zero bytes, a longer one is not accepted.
When to call it:
| Question | This command or not |
|---|---|
| HMAC-SHA256 of a string with a key | yes — –hmac-sha256 |
| a short SipHash hash | yes — –siphash, a key up to 16 bytes |
| verify a message signature | no |
# HMAC-SHA256 and SipHash of one string with one key pmta digest --hmac-sha256 --key=secretkey port25pmta digest --siphash --key=secretkey port25
2 relations
pmta digest --hmac-sha256 --key=secretkey port25
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.