__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /** * PublicKeyLoader * * Returns a PublicKey or PrivateKey object. * * @author Jim Wigginton <[email protected]> * @copyright 2009 Jim Wigginton * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ namespace phpseclib3\Crypt; use phpseclib3\Crypt\Common\AsymmetricKey; use phpseclib3\Crypt\Common\PrivateKey; use phpseclib3\Crypt\Common\PublicKey; use phpseclib3\Exception\NoKeyLoadedException; use phpseclib3\File\X509; /** * PublicKeyLoader * * @author Jim Wigginton <[email protected]> */ abstract class PublicKeyLoader { /** * Loads a public or private key * * @return AsymmetricKey * @param string|array $key * @param string $password optional */ public static function load($key, $password = false) { try { return EC::load($key, $password); } catch (NoKeyLoadedException $e) { } try { return RSA::load($key, $password); } catch (NoKeyLoadedException $e) { } try { return DSA::load($key, $password); } catch (NoKeyLoadedException $e) { } try { $x509 = new X509(); $x509->loadX509($key); $key = $x509->getPublicKey(); if ($key) { return $key; } } catch (\Exception $e) { } throw new NoKeyLoadedException('Unable to read key'); } /** * Loads a private key * * @return PrivateKey * @param string|array $key * @param string $password optional */ public static function loadPrivateKey($key, $password = false) { $key = self::load($key, $password); if (!$key instanceof PrivateKey) { throw new NoKeyLoadedException('The key that was loaded was not a private key'); } return $key; } /** * Loads a public key * * @return PublicKey * @param string|array $key */ public static function loadPublicKey($key) { $key = self::load($key); if (!$key instanceof PublicKey) { throw new NoKeyLoadedException('The key that was loaded was not a public key'); } return $key; } /** * Loads parameters * * @return AsymmetricKey * @param string|array $key */ public static function loadParameters($key) { $key = self::load($key); if (!$key instanceof PrivateKey && !$key instanceof PublicKey) { throw new NoKeyLoadedException('The key that was loaded was not a parameter'); } return $key; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Common | Folder | 0775 |
|
|
| DH | Folder | 0775 |
|
|
| DSA | Folder | 0775 |
|
|
| EC | Folder | 0775 |
|
|
| RSA | Folder | 0775 |
|
|
| AES.php | File | 3.65 KB | 0664 |
|
| Blowfish.php | File | 42.83 KB | 0664 |
|
| ChaCha20.php | File | 36.5 KB | 0664 |
|
| DES.php | File | 67.18 KB | 0664 |
|
| DH.php | File | 18.67 KB | 0664 |
|
| DSA.php | File | 9.04 KB | 0664 |
|
| EC.php | File | 13.04 KB | 0664 |
|
| Hash.php | File | 57.96 KB | 0664 |
|
| PublicKeyLoader.php | File | 2.64 KB | 0664 |
|
| RC2.php | File | 21.19 KB | 0664 |
|
| RC4.php | File | 7.18 KB | 0664 |
|
| RSA.php | File | 27.23 KB | 0664 |
|
| Random.php | File | 9.3 KB | 0664 |
|
| Rijndael.php | File | 43.07 KB | 0664 |
|
| Salsa20.php | File | 14.45 KB | 0664 |
|
| TripleDES.php | File | 13.2 KB | 0664 |
|
| Twofish.php | File | 36.35 KB | 0664 |
|