Skip to content

A small library with hash and encoding functions implemented in C. Currently supports blake2b hashing and base58 encode/decode.

Notifications You must be signed in to change notification settings

edubart/lua-hasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasher

A small library with hash and encoding functions implemented in C. Currently supports blake2b hashing and base58 encode/decode.

Installation

luarocks install hasher

Usage

Example usage:

local hasher = require 'hasher'

local binaryhash = hasher.blake2b('hello world')
local encodedhash = hasher.base58encode(binaryhash)
print(encodedhash)
-- outputs 3T7dTeZe2QgKBA8gHJS9uRPA2jAMGpNJewHaXaLhjeyV5GcMJnvjfW9FPrCvX7dVoN4qMGnQPTAX91UFVnAUW4f

License

MIT

About

A small library with hash and encoding functions implemented in C. Currently supports blake2b hashing and base58 encode/decode.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published