- crypt: documentation ( source)
<?php
$first = '!Password1';
$second = '!Passwor';
$password_salt = "311ca5f0-08ac-0131-ca44-42d9c34959f9";
echo crypt($first,$password_salt)."\n";
echo crypt($second,$password_salt);
//Result:31T5JJcAI4fZg31T5JJcAI4fZg