Socket
Socket
Sign inDemoInstall

http-auth

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-auth - npm Package Compare versions

Comparing version 4.1.4 to 4.1.5

4

package.json
{
"name": "http-auth",
"description": "Node.js package for HTTP basic and digest access authentication.",
"version": "4.1.4",
"version": "4.1.5",
"author": "Gevorg Harutyunyan (http://github.com/gevorg)",

@@ -29,5 +29,5 @@ "maintainers": [

"dependencies": {
"@node-rs/bcrypt": "^1.0.0",
"apache-crypt": "^1.1.2",
"apache-md5": "^1.0.6",
"bcryptjs": "^2.4.3",
"uuid": "^3.4.0"

@@ -34,0 +34,0 @@ },

@@ -16,3 +16,3 @@ "use strict";

// Bcrypt.
const bcrypt = require("@node-rs/bcrypt");
const bcrypt = require("bcryptjs");

@@ -40,3 +40,3 @@ // Crypto.

} else if (hash.substr(0, 4) === "$2y$" || hash.substr(0, 4) === "$2a$") {
return bcrypt.verifySync(password, hash);
return bcrypt.compareSync(password, hash);
} else if (hash === crypt(password, hash)) {

@@ -43,0 +43,0 @@ return true;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc