Re: [請益] 請問有關於密碼查尋
※ 引述《yigeo (wico)》之銘言:
: 請問一下
: 註冊時
: 是使用 MD5 加密後存到資料庫
: 那當我要查詢密碼時該如何反查密碼 ?
: (做忘記密碼功能的頁面)
: 謝謝
MD5, DES 這種方法不是 "加密" 是 "單向Hash"
理論上由密文推回原文趨近不可能
實作上由於軟硬體限制,實作目標會變成"在有限時間內趨近不可能"
所以你要做"忘記密碼"有兩種方式
其一是把所有密碼原文另外存一份,不過這樣就失去用MD5的意義
其二是亂數給他一個新密碼,要他自己進去改
--
And they... Will dance if they want to dance Please brother take a chance
You know they're gonna go Which way they wanna go
All we know is that we don't know
What is gonna be Please brother let it be
Life on the other hand won't let you understand
Why we're all part of the masterplan _
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.244.196
→
10/29 01:58, , 1F
10/29 01:58, 1F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 3 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章