https://www.php-resource.de/forum/php-developer-forum/2508-password-function