Created
February 16, 2016 01:06
-
-
Save spencercarli/6c6e9e90560605681109 to your computer and use it in GitHub Desktop.
Password Hashing for Meteor React Native - Hashing - Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In RNApp/app/ddp.js | |
| /* | |
| * Removed from snippet for brevity | |
| */ | |
| ddpClient.sha256 = (password) => { | |
| return { | |
| digest: hash.sha256().update(password).digest('hex'), | |
| algorithm: "sha-256" | |
| }; | |
| } | |
| export default ddpClient; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment