pbkdf2 0.1.1
PBKDF2 implementation for D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
PBKDF2 for D
D-language implementation of Password Based Key Derivation Function 2 RFC2898.
Unlike bcrypt this is easy to understand, secure enough given a sufficently random salt and implemented on top of the standard Phobos library.
It uses HMAC as a pseudorandom function, with SHA1 as a default hashing function.
Sample usage:
import std.string : representation;
import std.digest.sha;
import kdf.pbkdf2;
auto dk = pbkdf2("password".representation, "salt".representation);
auto dk256 = pbkdf2!SHA256("password".representation, "salt".representation);
Test vectors for HMAC-SHA1 and HMAC-SHA256 are included.
- Registered by Tomáš Chaloupka
- 0.1.1 released 8 years ago
- tchaloupka/pbkdf2
- BSL-1.0
- Copyright © 2016, Tomáš Chaloupka
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.3 2018-Jun-03 0.1.2 2017-Mar-13 0.1.1 2016-Apr-04 0.1.0 2016-Apr-03 ~master 2018-Jun-03 - Download Stats:
-
-
5 downloads today
-
29 downloads this week
-
162 downloads this month
-
20372 downloads total
-
- Score:
- 2.6
- Short URL:
- pbkdf2.dub.pm