private function makeRandomPW():String
{
var _pwLen:int = ExternalInterface.call("getPwMinLen");
var _pwChar:Array = new Array();
var _lastPool:int = -1;
var _lastChar:String = "";
var _charPoolArray:Array = ["~!@#$%^&*?_", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "0123456789"]
while (_pwChar.length < _pwLen)
{
var pidx:int = Math.random() * 10 % _charPoolArray.length;
if (_lastPool == pidx)
{
continue;
}
else
{
_lastPool = pidx;
}
var cidx:int = Math.random() * 100 % _charPoolArray[pidx].length;
if (_lastChar == _charPoolArray[pidx].charAt(cidx))
{
continue;
}
else
{
_lastChar = _charPoolArray[pidx].charAt(cidx);
_pwChar.push(_lastChar);
}
}
return _pwChar.join("");
}
[한X] 비밀번호 랜덤생성
|
2016.10.14 16:48:13
|
2016.10.19 08:40:13
|
452
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2017.05.15
2017.02.12
2016.11.15
2016.10.19
2016.10.19
2016.10.14
2016.10.13
2016.10.07
2016.10.07
2016.10.07