@@ -22,16 +22,16 @@ |
||
22 | 22 | * anything about the '=', as this only occurs when the b64 string is |
23 | 23 | * padded, which is always after the first 22 characters. |
24 | 24 | */ |
25 | - $salt=str_replace("+",".",$salt); |
|
25 | + $salt=str_replace("+",".",$salt); |
|
26 | 26 | |
27 | - /* Create a string that will be passed to crypt, containing all |
|
27 | + /* Create a string that will be passed to crypt, containing all |
|
28 | 28 | * of the settings, separated by dollar signs |
29 | 29 | */ |
30 | - $salt='$'.implode('$',[$bcrypt_version, $cost, $salt]); |
|
30 | + $salt='$'.implode('$',[$bcrypt_version, $cost, $salt]); |
|
31 | 31 | |
32 | - $ciphertext = crypt($plaintext, $salt); |
|
32 | + $ciphertext = crypt($plaintext, $salt); |
|
33 | 33 | |
34 | - return $ciphertext; |
|
34 | + return $ciphertext; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public static function verify($plaintext, $ciphertext) |