Skip to content

Commit

Permalink
modify branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
andy6804tw committed Jan 6, 2018
1 parent 716eeca commit cc56e45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
- 為POST添加joi
- [Link 連結](https://github.com/andy6804tw/RESTful_API_start_kit/tree/Part11-post-joi)
- [Tutorial 教學](/tutorials/Part11-post-joi.md)
- 使用者登入與密碼加密
- 使用者密碼加密
- [Link 連結](https://github.com/andy6804tw/RESTful_API_start_kit/tree/Part12-User-login)
- [Tutorial 教學](/tutorials/Part12-User-login.md)
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## 本文你將會學到
- 了解[bcrypt](https://github.com/kelektiv/node.bcrypt.js)加密運作方式
- 新增使用者時將密碼加密寫入資料庫
- 實作登入帳密驗證的API

## 前言
在設計資料庫時要考慮到資料的安全性,假使資料庫被駭所有的使用者密碼都被看光光,所以當我們寫入資料庫前要先將用戶密碼加密才是正確的做法,而使用的加密方法是使用 [bcrypt](https://github.com/kelektiv/node.bcrypt.js) 這個套件,他是目前星星數最多且持續維護中的專案,裡面有提供同步和非同步的加密方式。
Expand Down

0 comments on commit cc56e45

Please sign in to comment.