Giter Site home page Giter Site logo

Comments (7)

AniruddhPurohit avatar AniruddhPurohit commented on September 16, 2024

same error. /dev/urandom is available on ubuntu. but on windows It's not found. I have no idea how to solve it. Please someone help me out

from password-hash.

andyedward avatar andyedward commented on September 16, 2024

same error. I'm using a windows machine. How to solve this?

from password-hash.

Oussidi1998 avatar Oussidi1998 commented on September 16, 2024

Same error on windows machine , any updats??

from password-hash.

disaev1 avatar disaev1 commented on September 16, 2024

The problem is on the line:

const randomSource = RandBytes.urandom.getInstance();

where urandom is used which works with /dev/urandom. We can replace urandom with timeRandom as stated here: https://www.npmjs.com/package/randbytes#get-rand-bytes-from-timestamp
which works for me.

from password-hash.

callvm avatar callvm commented on September 16, 2024

The problem is on the line:

const randomSource = RandBytes.urandom.getInstance();

where urandom is used which works with /dev/urandom. We can replace urandom with timeRandom as stated here: https://www.npmjs.com/package/randbytes#get-rand-bytes-from-timestamp
which works for me.

Works for me too. A working Windows version is available here: https://github.com/callvm/password-hash-windows

from password-hash.

glauberportella avatar glauberportella commented on September 16, 2024

No more RandBytes.urandom is used on the repo. But I need someone with Windows to test and gives the feedback.

from password-hash.

sergiolindau avatar sergiolindau commented on September 16, 2024

The npm repository was not updated. It contain the 1.0.5 version with old version of get_random_bytes.

from password-hash.

Related Issues (5)

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.