Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uasi/inko-hmac
An HMAC implementation for Inko.
https://github.com/uasi/inko-hmac
Last synced: about 7 hours ago
JSON representation
An HMAC implementation for Inko.
- Host: GitHub
- URL: https://github.com/uasi/inko-hmac
- Owner: uasi
- License: mpl-2.0
- Created: 2023-08-09T06:02:42.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-30T19:14:33.000Z (3 months ago)
- Last Synced: 2024-07-31T23:07:33.701Z (3 months ago)
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# inko-hmac
An HMAC implementation for the Inko programming language.
## Examples
import hmac (Hmac)
let hmac = Hmac.new_sha1('my key')
hmac.write('hello')
hmac.finish.to_string # => 'fe072cabf75976329b8da24c67dbae2be29740a2'You can also use `Hmac.sha1` etc. to generate an HMAC hash directly.
import hmac Hmac
let hash = Hmac.sha1('my key', 'hello')
hash.to_string # => 'fe072cabf75976329b8da24c67dbae2be29740a2'