1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-10-24 12:26:05 +02:00

Extract class 'Base64' into external library

This commit is contained in:
Marco
2017-07-24 21:56:35 +02:00
parent b1ac859fd2
commit c2ab825354
5 changed files with 47 additions and 37 deletions

View File

@@ -8,6 +8,7 @@
namespace Delight\Auth;
use Delight\Base64\Base64;
use Delight\Cookie\Cookie;
use Delight\Cookie\Session;
use Delight\Db\PdoDatabase;
@@ -1154,7 +1155,7 @@ final class Auth extends UserManager {
private static function hash($data) {
$hashRaw = hash(self::IP_ADDRESS_HASH_ALGORITHM, $data, true);
return base64_encode($hashRaw);
return Base64::encode($hashRaw);
}
/**