Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created February 16, 2016 01:06
Show Gist options
  • Select an option

  • Save spencercarli/6c6e9e90560605681109 to your computer and use it in GitHub Desktop.

Select an option

Save spencercarli/6c6e9e90560605681109 to your computer and use it in GitHub Desktop.
Password Hashing for Meteor React Native - Hashing - Part 2
// 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