qri-io / starlib

qri's standard library for starlark
MIT License
113 stars 29 forks source link

feature request: expose HMAC functionality in the hash module #168

Open nchieng opened 2 years ago

nchieng commented 2 years ago

Would it be possible to add HMAC functionality in the hash module, so we can calculate hashed signatures when a key/secret is provided.

rgkimball commented 2 years ago

Was just looking for the same functionality. This is essential for signing requests when using OAuth 1.0; more details are available in the official documentation here: oauth.net/core/1.0a

See also: RFC 2104