看板Programming
標 題Re: [問題] 如何利用C#實作Password strength bar
發信站KKCITY (Wed May 28 01:44:52 2008)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.yzu!zoonews.ee.ntu!new
※ 引述《[email protected]》之銘言:
> 我最近在往論壇註冊時,看到打密碼時旁邊會出現
> password strength bar,bar的顏色會因為我輸入
> 的密碼不同而改變,想請問板上高手如何用C#作出
> 類似的password stength bar.
1)想一個方法計算strength
2)在form上安排一個bar
3)在textbox.textchanged事件的對應sub中計算strength並改變bar的長度
strength就找一個算亂度(entropy)的演算法,越亂越強。
或者檢查以下網頁上do's和dont's的項目。
http://www.securitystats.com/tools/password.php
--
蒙帝派松正體中文計畫 (4/23)
- 如何隱身 - SPAM - 英國殺人笑話
http://www.wretch.cc/blog/journeyman&article_id=14377810
▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂
■法外科學暨工程顧問公司■ http://www.wretch.cc/blog/journeyman/
▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆
--
┌─────◆KKCITY◆─────┐ ◢
◤ ★ 線上音樂新震撼 ★ ◢
◤
│ bbs.kkcity.com.tw │ ^_^ / 隨選隨播免等待 KKBOX◤ ^_^ /
└──《From:59.115.201.203
》──┘ ◤ http://www.kkbox.com.tw ◤
--