- crypt: documentation ( source)
<?php
echo 'SHA-512: ' . crypt('salasana', '$6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40') . "\n";
echo 'SHA-512: ' . crypt('salasana', '$6$qNElXs2yMnL2.GNS') . "\n";