Giter VIP home page Giter VIP logo

Comments (2)

wontory avatar wontory commented on September 9, 2024 1

bcryptjs의 hash 함수에서 두번째 인자가 salt가 아니라 sort가 맞나요?
해싱으로 암호화를 하게되면 동일한 비밀번호에 대해서 동일한 다이제스트가 생성되기 때문에 레인보우 테이블로 원래 비밀번호를 알아낼 수 있게 되죠.
그래서 속된 말로 소금을 친다고 하는데요. genSalt로 무작위 Salt값을 생성해서 함께 해싱처리하는 방법을 사용합니다.
이와 관련해서는 암호화 방식에 대해서 추가로 공부해보시면 좋을 것 같네요!

from bbjbc.github.io.

bbjbc avatar bbjbc commented on September 9, 2024 1

salt가 맞는 것 같아요 !
좋은 답변 감사합니다. 이제라도 인지해서 정말 다행이네요 ㅎㅎ

from bbjbc.github.io.

Related Issues (4)

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.