Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* * This file is part of the Acme PHP project. * * (c) Titouan Galopin <galopin..

Decoded Output download

<?php

/*
 * This file is part of the Acme PHP project.
 *
 * (c) Titouan Galopin <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AcmePhp\Ssl\Generator;

use AcmePhp\Ssl\Exception\KeyGenerationException;
use AcmePhp\Ssl\PrivateKey;

/**
 * Generate random private key.
 *
 * @author Jrmy Deruss <[email protected]>
 */
interface PrivateKeyGeneratorInterface
{
    /**
     * Generate a PrivateKey.
     *
     * @param KeyOption $keyOption configuration of the key to generate
     *
     * @throws KeyGenerationException when OpenSSL failed to generate keys
     */
    public function generatePrivateKey(KeyOption $keyOption): PrivateKey;

    /**
     * Returns whether the instance is able to generator a private key from the given option.
     *
     * @param KeyOption $keyOption configuration of the key to generate
     */
    public function supportsKeyOption(KeyOption $keyOption): bool;
}
 ?>

Did this file decode correctly?

Original Code

<?php

/*
 * This file is part of the Acme PHP project.
 *
 * (c) Titouan Galopin <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AcmePhp\Ssl\Generator;

use AcmePhp\Ssl\Exception\KeyGenerationException;
use AcmePhp\Ssl\PrivateKey;

/**
 * Generate random private key.
 *
 * @author Jrmy Deruss <[email protected]>
 */
interface PrivateKeyGeneratorInterface
{
    /**
     * Generate a PrivateKey.
     *
     * @param KeyOption $keyOption configuration of the key to generate
     *
     * @throws KeyGenerationException when OpenSSL failed to generate keys
     */
    public function generatePrivateKey(KeyOption $keyOption): PrivateKey;

    /**
     * Returns whether the instance is able to generator a private key from the given option.
     *
     * @param KeyOption $keyOption configuration of the key to generate
     */
    public function supportsKeyOption(KeyOption $keyOption): bool;
}

Function Calls

None

Variables

None

Stats

MD5 1124a9d4fe00d88159c43f59fada031a
Eval Count 0
Decode Time 87 ms