1
0
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:
JoshyPHP
2019-04-15 18:06:00 +02:00
committed by Marc Alexander
parent a4a5b069ec
commit 860a370e8f
4 changed files with 42 additions and 0 deletions

View 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$';
}
}