Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
sslit
/
vendor
/
acmephp
/
ssl
/
Generator
/
DhKey
/
File Content:
DhKeyOption.php
<?php /* * This file is part of the Acme PHP project. * * (c) Titouan Galopin <galopintitouan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PleskSslIt\AcmePhp\Ssl\Generator\DhKey; use PleskSslIt\AcmePhp\Ssl\Generator\KeyOption; class DhKeyOption implements KeyOption { /** @var string */ private $generator; /** @var string */ private $prime; /** * @param string $prime Hexadecimal representation of the prime * @param string $generator Hexadecimal representation of the generator: ie. 02 * * @see https://tools.ietf.org/html/rfc3526 how to choose a prime and generator numbers */ public function __construct($prime, $generator = '02') { $this->generator = \pack('H*', $generator); $this->prime = \pack('H*', $prime); } /** * @return string */ public function getGenerator() { return $this->generator; } /** * @return string */ public function getPrime() { return $this->prime; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
DhKeyGenerator.php
1236 bytes
0644
DhKeyOption.php
1141 bytes
0644
N4ST4R_ID | Naxtarrr