abscissa / dauth Goto Github PK
View Code? Open in Web Editor NEWSalted Hased Password Library for D
License: Other
Salted Hased Password Library for D
License: Other
Upcoming release of 2.067 is breaking compilation:
Building dauth 0.6.1 configuration "library", build type debug.
Running dmd...
../../../.dub/packages/dauth-0.6.1/src/dauth/sha.d(748): Warning: instead of C-style syntax, use D-style syntax 'ubyte[8] bits'
../../../.dub/packages/dauth-0.6.1/src/dauth/sha.d(772): Warning: instead of C-style syntax, use D-style syntax 'ubyte[16] bits'
Like the title says.
"Salted Hased Password Library for D" should be "Salted Hashed Password Library for D"
crypt does not use Base64, hence providing a crypt hash to parseHash fails with a Base64 exception
Crypt uses it's own keymap (see e.g. here).
crypt transposes the hash bytes before encoding them (see sha512-crypt.c, sha256-crypt.c, and md5-crypt.c).
parseHash does not handle $round=10000$
parameters as 2nd component
You might want to add the following test case
$6$rounds=10000$tGiXIng0KHBPBHhk$84T63BF34OMoG4TeoGV7ReJ/U/OAtfa9iFOXQ/Wsd4s3N2wBcdUCPllpkzgYbFfagBcIZxyjqcfvL.KjdiBFJ1
which encrypts the password mypass
.
Also passlib might be a useful inspiration for a correct implementation.
In my windows pc, I cannot compiled the library without replacing import std.c.windows.windows;
with import core.sys.windows.windows;
.
Please note that the same problem exist for instauser too.
It appears that
makeHash("password".dup.toPassword).toString
returns different values with the same execution of the program,
but returns the same values in the same order in separate executions.
This would mean you are seeding rand with a know value right?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.