mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16017] Add support for Argon2id as default password hashing
PHPBB3-16017
This commit is contained in:
33
phpBB/phpbb/passwords/driver/argon2id.php
Normal file
33
phpBB/phpbb/passwords/driver/argon2id.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\passwords\driver;
|
||||
|
||||
class argon2id extends argon2i
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_algo_name()
|
||||
{
|
||||
return 'PASSWORD_ARGON2ID';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_prefix()
|
||||
{
|
||||
return '$argon2id$';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user