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

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.

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