<?php
function geraSenha(){
//caracteres que serĂ£o usados na senha randomica
$chars = 'abcdxyswzABCDZYWSZ0123456789';
//ve o tamnha maximo que a senha pode ter
//declara $senha
$senha = null;
//loop que gerarĂ¡ a senha de 8 caracteres
for($i=0;$i < 8; $i++){
}
return $senha;
}
$i = 0;
while($i < 10) {
echo geraSenha() . "\n";
$i++;
}
PD9waHAKZnVuY3Rpb24gZ2VyYVNlbmhhKCl7CgkvL2NhcmFjdGVyZXMgcXVlIHNlcsOjbyB1c2Fkb3MgbmEgc2VuaGEgcmFuZG9taWNhCgkkY2hhcnMgPSAnYWJjZHh5c3d6QUJDRFpZV1NaMDEyMzQ1Njc4OSc7CgkvL3ZlIG8gdGFtbmhhIG1heGltbyBxdWUgYSBzZW5oYSBwb2RlIHRlcgoJJG1heCA9IHN0cmxlbigkY2hhcnMpIC0gMTsKCS8vZGVjbGFyYSAkc2VuaGEKCSRzZW5oYSA9IG51bGw7CgkKCS8vbG9vcCBxdWUgZ2VyYXLDoSBhIHNlbmhhIGRlIDggY2FyYWN0ZXJlcwoJZm9yKCRpPTA7JGkgPCA4OyAkaSsrKXsKCQkkc2VuaGEgLj0gJGNoYXJze210X3JhbmQoMCwkbWF4KX07Cgl9CglyZXR1cm4gJHNlbmhhOyAgICAgICAgICAKfQokaSA9IDA7CndoaWxlKCRpIDwgMTApIHsKCWVjaG8gZ2VyYVNlbmhhKCkgLiAiXG4iOwoJJGkrKzsKfQ==