@element-ts/krypton
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -30,3 +30,3 @@ "use strict"; | ||
const hashData = Buffer.from(hash, "utf8"); | ||
return Buffer.compare(password, hashData) === 0; | ||
return password.equals(hashData); | ||
}); | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "@element-ts/krypton", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A simple crypto library that wraps node and bcrypt.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
34486