| 1234567891011121314151617181920212223242526 |
- <?php
- namespace Tools {
- /**
- *
- */
- class Crypto {
- /**
- *
- */
- public static function getHashPassword($clearPassword) {
- return password_hash($clearPassword, PASSWORD_BCRYPT);
- }
- /**
- *
- */
- public static function verify($clearPassword, $hash) {
- return password_verify($clearPassword, $hash);
- }
- }
- }
- ?>
|