博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理

2012年1月18日

摘要: 生成强密码 主要代码:function getPwd(n){ var s = ''; while(n--) s += String.fromCharCode(33 + Math.floor(Math.random()*(126-33))) document.getElementById('txt1').value = s;}计算密码破解时间密码强度: 密码位数: (假设使用每秒2.4G的双核CPU计算,不考虑其他因素,穷举破解) 主要代码:function getTime(){ var str = '预计破解用时:'; var selChar = 阅读全文

posted @ 2012-01-18 13:25 PHP-张工 阅读(1535) 评论(0) 推荐(1)