frankx: passwort kryptisieren für htaccess valid-user

Beitrag lesen

Hellihello Cybaer,

Aber wie der krypted, weiß ich immer noch nicht.

Er crypted gar nicht, er hasht - und das möglichst mit ein wenig Salz. ;-)

php.net/md5 sagt u.a.:

so that nobody gets confused by karlo1 at gmail's remarks, salting is simply the inclusion of additional characters, like so:

<?php

$salt = 'random_stuff_12345';
  $hash = md5 ($pass . $salt);

?>

Aber mit PHP kann ich das patchige Salz nicht beistreuen, oder?

Dank und Gruß,

frankx

--
tryin to multitain  - Globus = Planet != Welt