This is a tool for calculate the hashmac of string with SHA256 and base64 encrypt.
Default Secret Key is ''
(empty String), please use this tool with your key each time.
- --help ( -h ) : help for usage.
- --secret ( -s ) : secret key for hamc.
npm i hmac-tool -g
Or
$ git clone https://github.com/z20240/hmac-tool.git
$ cd hmac-tool
$ sudo npm install -g
$ hmac-tool '{"a": 1, "b":2}' -s "secret key"
// hmac : z+CQKuPYevATybEqDfiu609r7VP1K1EtDjiAVBRfEDE=
MIT
hamc