node-phpass | Node implementation of the portable PHP password hashing | Hashing library

 by   jhurliman JavaScript Version: Current License: No License

kandi X-RAY | node-phpass Summary

kandi X-RAY | node-phpass Summary

node-phpass is a JavaScript library typically used in Security, Hashing, Nodejs applications. node-phpass has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

A pure node.js JavaScript port of the portable PHP password hashing framework. The goal is to support existing password hashes created with the phpass library and to generate new hashes that can be used with phpass.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-phpass has a low active ecosystem.
              It has 38 star(s) with 14 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-phpass is current.

            kandi-Quality Quality

              node-phpass has 0 bugs and 0 code smells.

            kandi-Security Security

              node-phpass has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              node-phpass code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              node-phpass does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              node-phpass releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-phpass
            Get all kandi verified functions for this library.

            node-phpass Key Features

            No Key Features are available at this moment for node-phpass.

            node-phpass Examples and Code Snippets

            No Code Snippets are available at this moment for node-phpass.

            Community Discussions

            QUESTION

            WP and Node implementations of Phpass does not match when there are international characters in the password
            Asked 2019-Jun-21 at 15:08

            I want to authenticate WP users using my own authentication service written in Node. I have users saved in the wp_users table. Their passwords are hashed using Phpass method by WordPress. When a user is trying to log into his account, WP is using CheckPassword() method and returns boolean true/false if the password matches or not.

            Now I want to use Node to compare user password to the WP hash. I found node-phpass module on NPM, which is supposed to provide the Phpass algorithm for password hashing.

            It's all fine until I use international characters. Here's an example:

            In WP, I set the password like this, and get a hash:

            P: alamakota
            H: $P$BSrncAWIY2KU7waUGLzayaon6v3gKU1

            When I try to log in, WP says "All fine, come in, man"

            Now, I take the hash and try to validate it using node-phpass module:

            ...

            ANSWER

            Answered 2019-Jun-21 at 15:08

            So it turned out that the PHP's md5() function returns different hash than JS'es crypto.createHash('md5') because of character encoding. I've used utf8 before comparing the password against the hash and everything works as expected:

            Source https://stackoverflow.com/questions/56705249

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-phpass

            Use NPM to install:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jhurliman/node-phpass.git

          • CLI

            gh repo clone jhurliman/node-phpass

          • sshUrl

            git@github.com:jhurliman/node-phpass.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Hashing Libraries

            Try Top Libraries by jhurliman

            node-rate-limiter

            by jhurlimanTypeScript

            node-echoprint-server

            by jhurlimanJavaScript

            node-pcm

            by jhurlimanJavaScript

            node-streamcount

            by jhurlimanJavaScript

            node-mysql-simple

            by jhurlimanJavaScript