Home
Tutorials
Downloads
Script-Archiv
Forum
Partner
Impressum
Passwörter mit PHP generieren
Wie generiere ich mit Hilfe von PHP ein Passwort aus Buchstaben und Zahlen?
Mit folgendem Code-Schnipsel ist das möglich:
Code
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<?php
$pool
=
"qwertzupasdfghkyxcvbnm"
;
$pool
.=
"23456789"
;
$pool
.=
"WERTZUPLKJHGFDSAYXCVBNM"
;
sra nd
((double)
microtime
()*
1000000
);
for (
$index
=
0
;
$index
<
5
;
$index
++)
{
$pass_word
.=
substr
(
$pool
,(
rand
()%(
strlen
(
$pool
))),
1
);
}
?>
» Keine Kommentare
Es gibt bisher noch keine Kommentare.
» Kommentar schreiben
E-Mail (wird nicht veröffentlicht)
Name
Titel
Kommentar
Eintragen
< zurück
weiter >
[ Zurück ]
Suche
Tutorials
HTML-Tutorials
PHP-Tutorials
Photoshop-Tutorials
Sonstige-Tutorials
WHGB 1.1- Das Gästebuch von Webhilfe
Jetzt downloaden