Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
BevisyPublic archive

About

Hmac 计算工具

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

HamcCalcTools

Build Status

Hmac 计算工具

功能

1.根据传入参数,返回对应的哈希值

接口设计

# 支持算法:
#   hmac-sha1
#   hmac-sha256
#   hmac-sha384
#   hmac-sha512

POST /hmac?message=foo&key=secret&algorithm=hmac-sha1
RETURN:
{
  "message":   message,
  "key":       key,
  "algorithm": algorithm,
  "HMAC-SHA1": {hash value},
}
CODE: 200
# base64 编码
POST /base64?message=foo
RETURN
{
  "message": message,
  "base64":  {base64 string},
}
CODE: 200
# 健康性检查接口
GET /health
RETURN
    "ok"
CODE: 200

About

Hmac 计算工具

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages