Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Fix broken hash function #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akuma6099
Copy link

Needed to add a "digest" key to the hash function to satisfy crypto.pbkdf2 otherwise the spark-server could not generate a user json config file. Now you can execute the following and you will get a bob.json file successfully:

curl -X POST http://192.168.1.50:8080/v1/users -d "username=bob" -d "password=123123"

:Doc:
crypto.pbkdf2(password, salt, iterations, keylen, digest, callback)

Needed to add a "digest" key to the hash function to satisfy crypto.pbkdf2 otherwise the spark-server could not generate a user json config file. Now you can execute the following successfully:

curl -X POST http://192.168.1.50:8080/v1/users -d "username=bob" -d "password=123123"

:Doc:
crypto.pbkdf2(password, salt, iterations, keylen, digest, callback)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant