https://github.com/edubart/lua-hasher
A small library with hash and encoding functions implemented in C. Currently supports blake2b hashing and base58 encode/decode.
https://github.com/edubart/lua-hasher
base58 blake2b hashing lua
Last synced: 3 months ago
JSON representation
A small library with hash and encoding functions implemented in C. Currently supports blake2b hashing and base58 encode/decode.
- Host: GitHub
- URL: https://github.com/edubart/lua-hasher
- Owner: edubart
- Created: 2019-04-12T13:51:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T16:55:54.000Z (over 6 years ago)
- Last Synced: 2025-04-04T17:23:34.870Z (6 months ago)
- Topics: base58, blake2b, hashing, lua
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hasher
A small library with hash and encoding functions implemented in C. Currently supports
blake2b hashing and base58 encode/decode.## Installation
```bash
luarocks install hasher
```## Usage
Example usage:
```lua
local hasher = require 'hasher'local binaryhash = hasher.blake2b('hello world')
local encodedhash = hasher.base58encode(binaryhash)
print(encodedhash)
-- outputs 3T7dTeZe2QgKBA8gHJS9uRPA2jAMGpNJewHaXaLhjeyV5GcMJnvjfW9FPrCvX7dVoN4qMGnQPTAX91UFVnAUW4f
```### License
MIT