Skip to content

Commit fae8861

Browse files
🏁 Add Windows Support (bcrypt > bcrypt-node)
- This commit replaces bcrypt with bcrypt-node, which has the same functionality as bcrypy - except that it is a pure Node implementation. This change is required to run parse-server on Windows (one can get bcrypt to compile on Windows, but it requires a few Gigabytes of dependencies).
1 parent 522abdf commit fae8861

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crypto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tools for encrypting and decrypting passwords.
22
// Basically promise-friendly wrappers for bcrypt.
3-
var bcrypt = require('bcrypt');
3+
var bcrypt = require('bcrypt-node');
44

55
// Returns a promise for a hashed password string.
66
function hash(password) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"license": "BSD-3-Clause",
1111
"dependencies": {
12-
"bcrypt": "~0.8",
12+
"bcrypt-node": "^0.1.0",
1313
"body-parser": "~1.12.4",
1414
"deepcopy": "^0.5.0",
1515
"express": "~4.2.x",

0 commit comments

Comments
 (0)