__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Jose\Component\Encryption\Algorithm\KeyEncryption;
use InvalidArgumentException;
use Jose\Component\Core\JWK;
use Jose\Component\Core\Util\Base64UrlSafe;
use function in_array;
use function is_string;
final class Dir implements DirectEncryption
{
public function getCEK(JWK $key): string
{
if (! in_array($key->get('kty'), $this->allowedKeyTypes(), true)) {
throw new InvalidArgumentException('Wrong key type.');
}
if (! $key->has('k')) {
throw new InvalidArgumentException('The key parameter "k" is missing.');
}
$k = $key->get('k');
if (! is_string($k)) {
throw new InvalidArgumentException('The key parameter "k" is invalid.');
}
return Base64UrlSafe::decodeNoPadding($k);
}
public function name(): string
{
return 'dir';
}
public function allowedKeyTypes(): array
{
return ['oct'];
}
public function getKeyManagementMode(): string
{
return self::MODE_DIRECT;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Util | Folder | 0775 |
|
|
| A128GCMKW.php | File | 287 B | 0664 |
|
| A128KW.php | File | 370 B | 0664 |
|
| A192GCMKW.php | File | 287 B | 0664 |
|
| A192KW.php | File | 370 B | 0664 |
|
| A256GCMKW.php | File | 287 B | 0664 |
|
| A256KW.php | File | 370 B | 0664 |
|
| AESGCMKW.php | File | 3.23 KB | 0664 |
|
| AESKW.php | File | 1.98 KB | 0664 |
|
| AbstractECDH.php | File | 10.81 KB | 0664 |
|
| AbstractECDHAESKW.php | File | 761 B | 0664 |
|
| Dir.php | File | 1.06 KB | 0664 |
|
| DirectEncryption.php | File | 395 B | 0664 |
|
| ECDHES.php | File | 212 B | 0664 |
|
| ECDHESA128KW.php | File | 418 B | 0664 |
|
| ECDHESA192KW.php | File | 418 B | 0664 |
|
| ECDHESA256KW.php | File | 418 B | 0664 |
|
| ECDHESAESKW.php | File | 1.52 KB | 0664 |
|
| ECDHSS.php | File | 1.05 KB | 0664 |
|
| ECDHSSA128KW.php | File | 418 B | 0664 |
|
| ECDHSSA192KW.php | File | 418 B | 0664 |
|
| ECDHSSA256KW.php | File | 476 B | 0664 |
|
| ECDHSSAESKW.php | File | 1.52 KB | 0664 |
|
| KeyAgreement.php | File | 660 B | 0664 |
|
| KeyAgreementWithKeyWrapping.php | File | 1.53 KB | 0664 |
|
| KeyEncryption.php | File | 973 B | 0664 |
|
| KeyWrapping.php | File | 996 B | 0664 |
|
| PBES2AESKW.php | File | 4.62 KB | 0664 |
|
| PBES2HS256A128KW.php | File | 510 B | 0664 |
|
| PBES2HS384A192KW.php | File | 510 B | 0664 |
|
| PBES2HS512A256KW.php | File | 510 B | 0664 |
|
| RSA.php | File | 1.71 KB | 0664 |
|
| RSA15.php | File | 460 B | 0664 |
|
| RSAOAEP.php | File | 464 B | 0664 |
|
| RSAOAEP256.php | File | 467 B | 0664 |
|