Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- typescript #react #jsx #component #usestate
- typescript #class #extends #public #private #protected #static
- github#githubpages#gh-pages#deploy
- serializeUser
- git vscode
- typescript #import #export #*
- typescript #unknown
- typescript #constructor #class #public #private
- GitHub Actions
- ejs 문법
- TypeScript #문법
- mongodb 입출력
- updatemany
- deserializeUser
- Passport
- e.target
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- react#로스트아크#mbti#테스트
- github#githubpages#빈화면#basename
- connect-mongo
- __dirname
- CSS
- sendFile
- expess
- Promise #async #await #try #catch
- 정적 페이지
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- github#로컬저장소#원격저장소
- updateone
- insertone
Archives
- Today
- Total
목록connect-mongo (1)
VaIice의 이야기
[Node.js] 비밀번호 암호화 (hashing) 및 회원가입 예제
1. 종류 SHA3-256 SHA3-512 bcrypt scrypt argon2 ... 2. bcrypt 사용법 npm install bctypt // server.js const bctypt = require('bcrypt') 3. hashing app.post('/signUp/add', async (request, response) => { try { let hashing = await bcrypt.hash(request.body.password, 10) console.log(hashing) bcrypt.hash('해싱할 문자', 숫자) 숫자가 높을수록 보안 ↑ 시간 ↑ 비밀번호만 해싱하는 것이 아닌, salt라고 불리는 랜덤한 문자열 추가 ..
[Node.js]
2024. 7. 18. 20:01