http-auth
Advanced tools
Comparing version 4.1.4 to 4.1.5
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22639
+ Addedbcryptjs@^2.4.3
+ Addedbcryptjs@2.4.3(transitive)
- Removed@node-rs/bcrypt@^1.0.0
- Removed@emnapi/core@1.2.0(transitive)
- Removed@emnapi/runtime@1.2.0(transitive)
- Removed@emnapi/wasi-threads@1.0.1(transitive)
- Removed@napi-rs/wasm-runtime@0.2.4(transitive)
- Removed@node-rs/bcrypt@1.10.4(transitive)
- Removed@node-rs/bcrypt-android-arm-eabi@1.10.4(transitive)
- Removed@node-rs/bcrypt-android-arm64@1.10.4(transitive)
- Removed@node-rs/bcrypt-darwin-arm64@1.10.4(transitive)
- Removed@node-rs/bcrypt-darwin-x64@1.10.4(transitive)
- Removed@node-rs/bcrypt-freebsd-x64@1.10.4(transitive)
- Removed@node-rs/bcrypt-linux-arm-gnueabihf@1.10.4(transitive)
- Removed@node-rs/bcrypt-linux-arm64-gnu@1.10.4(transitive)
- Removed@node-rs/bcrypt-linux-arm64-musl@1.10.4(transitive)
- Removed@node-rs/bcrypt-linux-x64-gnu@1.10.4(transitive)
- Removed@node-rs/bcrypt-linux-x64-musl@1.10.4(transitive)
- Removed@node-rs/bcrypt-wasm32-wasi@1.10.4(transitive)
- Removed@node-rs/bcrypt-win32-arm64-msvc@1.10.4(transitive)
- Removed@node-rs/bcrypt-win32-ia32-msvc@1.10.4(transitive)
- Removed@node-rs/bcrypt-win32-x64-msvc@1.10.4(transitive)
- Removed@tybys/wasm-util@0.9.0(transitive)
- Removedtslib@2.7.0(transitive)