Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mynameiscfed/lua-resty-fastpbkdf2

Lua bindings to fastpbkdf2
https://github.com/mynameiscfed/lua-resty-fastpbkdf2

Last synced: 3 months ago
JSON representation

Lua bindings to fastpbkdf2

Awesome Lists containing this project

README

        

# lua-resty-fastpbkdf2
Lua bindings to fastpbkdf2

# Usage

pbkdf2.fastpbkdf2_hmac(password, salt, iterations, key_len, hash_type)

password = string

salt = string

iterations = integer

key_len = integer

hash_type = string [ sha1, sha256, sha512 ]

Example
```
local pbkdf2 = require "fastpbkdf2"
local keydata = pbkdf2.fastpbkdf2_hmac(key, salt, iterations, 48, "sha256")
```

This is an experimental module. Use with caution.