JWK

Extends\phpseclib3\Crypt\Common\Formats\Keys\JWK

JWK Formatted RSA Handler

author

Jim Wigginton terrafrost@php.net

package

Default

Methods

Break a public or private key down into its constituent components

load(string $key,string $password = ''): array
static

Arguments

$key

string

$password

string

Response

array

Convert a private key to the appropriate format.

savePrivateKey(\phpseclib3\Math\BigInteger $n,\phpseclib3\Math\BigInteger $e,\phpseclib3\Math\BigInteger $d,array $primes,array $exponents,array $coefficients,string $password = '',array $options = array()): string
static

Arguments

$primes

array

$exponents

array

$coefficients

array

$password

string

optional

$options

array

optional

Response

string

Convert a public key to the appropriate format

savePublicKey(\phpseclib3\Math\BigInteger $n,\phpseclib3\Math\BigInteger $e,array $options = array()): string
static

Arguments

$options

array

optional

Response

string

Wrap a key appropriately

wrapKey(array $key,array $options): string
static

Arguments

$key

array

$options

array

Response

string