emilbayes / secure-password

Making Password storage safer for all
ISC License
568 stars 22 forks source link

Add example Node/Express project #17

Closed luispadron closed 6 years ago

luispadron commented 6 years ago

I think this project could really benefit from a fully fledged example of how to use it using real tools.

I went ahead and created a small Node/Express/Sequelize app that can create a user, encrypts the password, and then allows someone to log in as said user. This uses both the secure-password functions hash and verify.

I'm still new to all this authentication + web stuff since most of my background is in iOS but I've tested this and it seems to be working. If you think this can help others who may not know how to get started then feel free to merge it, otherwise no biggie since I mostly did this as a learning experience.

If you'd like to test/verify things there is a README inside the Examples/Node folder where it goes over instructions/getting started.

Thanks for the awesome project!

emilbayes commented 6 years ago

Very happy to see you took the time to do this! Did you have a look at #8? I think what you have done here is better suited in your own project, since you also pull in a lot of modules where different people would argue otherwise :)

luispadron commented 6 years ago

That’s true, I had seen that but noticed it hadn’t been merged.