Coder Social home page Coder Social logo

Comments (6)

eahefnawy avatar eahefnawy commented on July 29, 2024

@mwawrusch thanks for the heads up! You're absolutely right! I thought the secret should be enough, but salting each user is definitely a better practice.

from serverless-graphql.

kennu avatar kennu commented on July 29, 2024

I would recommend against hashing passwords, even with salt, as they are fairly easy to crack.

Instead, a key derivation function like https://www.npmjs.com/package/bcrypt-nodejs can provide much better security. (I've used that package with Serverless; it doesn't require native libraries.)

from serverless-graphql.

marksteele avatar marksteele commented on July 29, 2024

+1

Salted passwords are much much harder to crack than unsalted ones (salted password protect against rainbow table lookups and brute force). That being said, key derivation functions (like bcrypt) will make it all but impossible for an attacker who might gain access to the password database to be able to reverse the passwords that are stored. It will however increase the runtime of the functions that check the password proportionally to the number of derivation iterations. The point of key derivation functions is to make them computationally expensive and slow.

from serverless-graphql.

brettstack avatar brettstack commented on July 29, 2024

+1

This should be the default, but maybe we should mention the hashing
optionin the README since Lambda charges based on computation-time. Users
can do their own cost-benefit analysis.

On Mon, 28 Mar 2016 at 13:17 Mark Steele [email protected] wrote:

+1

Salted passwords are much much harder to crack than unsalted ones (salted
password protect against rainbow table lookups and brute force). That being
said, key derivation functions (like bcrypt) will make it all but
impossible for an attacker who might gain access to the password database
to be able to reverse the passwords that are stored. It will however
increase the runtime of the functions that check the password
proportionally to the number of derivation iterations. The point of key
derivation functions is to make them computationally expensive and slow.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16 (comment)

from serverless-graphql.

mwawrusch avatar mwawrusch commented on July 29, 2024

+1 for bcrypt - should have mentioned that ;-)

from serverless-graphql.

eahefnawy avatar eahefnawy commented on July 29, 2024

bcrypt and salting added! Thank you all for your feedback! 😊

from serverless-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.