primo commit
This commit is contained in:
22
libraries/fof40/Encrypt/RandvalInterface.php
Normal file
22
libraries/fof40/Encrypt/RandvalInterface.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Encrypt;
|
||||
|
||||
defined('_JEXEC') || die();
|
||||
|
||||
interface RandvalInterface
|
||||
{
|
||||
/**
|
||||
* Returns a cryptographically secure random value.
|
||||
*
|
||||
* @param int $bytes How many random bytes do you want to be returned?
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function generate(int $bytes = 32): string;
|
||||
}
|
||||
Reference in New Issue
Block a user