This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
HLDS is a one-way hash algorithm in php language, depending on the length of the primary string, its security and difficulty are also higher and it breaks into words. Due to the use of random mechanism, it returns different values for each string. | |
It is very useful for storing passwords and sensitive data because it is difficult to check whether the numbers match the string or not. | |
*/ | |
function convertSaltToNum (string $salt): string|false | |
{ | |
$chars = str_split($salt); |