Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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'