���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/drive.rickard.co/systemMYs/classes/vendor/League/OAuth2/Server/Util/KeyAlgorithm/DefaultAlgorithm.php
���ѧ٧ѧ�
<?php /** * OAuth 2.0 Secure key interface * * @package league/oauth2-server * @author Alex Bilbie <hello@alexbilbie.com> * @copyright Copyright (c) Alex Bilbie * @license http://mit-license.org/ * @link https://github.com/thephpleague/oauth2-server */ namespace League\OAuth2\Server\Util\KeyAlgorithm; class DefaultAlgorithm implements KeyAlgorithmInterface { /** * {@inheritdoc} */ public function generate($len = 40) { $stripped = ''; do { $bytes = openssl_random_pseudo_bytes($len, $strong); // We want to stop execution if the key fails because, well, that is bad. if ($bytes === false || $strong === false) { // @codeCoverageIgnoreStart throw new \Exception('Error Generating Key'); // @codeCoverageIgnoreEnd } $stripped .= str_replace(array('/', '+', '='), '', base64_encode($bytes)); } while (strlen($stripped) < $len); return substr($stripped, 0, $len); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.01 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�