GithubHelp home page GithubHelp logo

dauth's People

Contributors

abscissa avatar john-colvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dauth's Issues

Compilation fail with 2.067-rc1

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'

crypt(3) support broken

  1. 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).

  2. crypt transposes the hash bytes before encoding them (see sha512-crypt.c, sha256-crypt.c, and md5-crypt.c).

  3. 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.

wrong imports in hashdrbg.d

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.

makeHash returns same value in separate executions

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.