Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

密碼要 Hash #31

Open
linroex opened this issue Jan 27, 2016 · 1 comment
Open

密碼要 Hash #31

linroex opened this issue Jan 27, 2016 · 1 comment
Assignees

Comments

@linroex
Copy link
Collaborator

linroex commented Jan 27, 2016

sha-2
存在資料庫的密碼要 hash

@ericmina83
Copy link
Collaborator

在 \process\register.php #32 中,使用 hash 來製作雜湊馬並儲存至資料庫中。
在 \process\login.php #29 中,使用 hash 來製作雜湊馬進行身份驗證。

hash 函式做出來的雜湊碼有 128 個字元,但是 password 的長度只有 64 個字元,使否只取最前方的 64 個字元就行了呢?

@ericmina83 ericmina83 assigned linroex and unassigned ericmina83 Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants