$salt = hash('sha512', uniqid( openssl_random_pseudo_bytes( 16 ), TRUE ) ); $salted = hash( 'sha512', $pwencoded . $salt );