Giter VIP home page Giter VIP logo

scrypt's People

Contributors

frasertweedale avatar informatikr avatar

Stargazers

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

Watchers

 avatar  avatar

scrypt's Issues

Include scrypt in stackage

Would be nice if scrypt was part of stackage, so that I didn't have to include it in extra-deps.

There is practically no effort needed on your side (I have a few packages in stackage myself). Plus, you'll automatically be notified when your package fails to build with newer versions of its dependencies (as you don't have any upper bounds).

Trailing NUL characters in passwords are ignored

The functions encryptPass, verifyPass, etc. ignore trailing NUL characters in passwords, so the passwords "foobar" and "foobar\NUL" are treated as equivalent -- the password "foobar" will successfully verify with scrypted password "foobar\NUL" and vice versa. NUL characters appearing elsewhere in passwords are respected, so "foobar" and "foo\NULbar" are not treated as equivalent. Nor are "foo" and "foo\NULbar" treated as equivalent, so it doesn't appear as though passwords are simply being truncated at the first NUL.

The following program demonstrates the bug. It inserts a NUL character inside the string "foobar" in a few different positions, and outputs cases where two distinct password strings (e.g. "foobar" and "foobar\NUL") are treated equivalently.

http://lpaste.net/7630761935448834048

This behavior occurs with the scrypt-0.4.0 package on Hackage.

Granted, it's probably unlikely that someone would put a NUL inside a password, but it could conceivably happen for randomly-generated passwords for machine-to-machine authentication, where typeability isn't a concern.

Only x86* is supported

Currently, only x86* is supported due to SSE. It would be nice to enable it for other archs too.

Doesn't work on Windows

Haskell Platform 2012.4.0.0
<sys/mman.h> doesn't exist on Windows/mingw.

To fix, just remove the line

#include <sys/mman.h>

from crypto_scrypt-sse.c. The package then compiles correctly. Tests pass.

"libscrypt": Reducing duplication of effort.

Basically, having one libscrypt makes things easier. Otherwise, improvements in one binding don't get propagated upstream to others, etc, etc.

Also, I'm open to placing these bindings in the readme, cabal install scrypt and author attribution at your option... up to you.

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.