XML
in package
AbstractYes
XML Formatted RSA Key Handler
Tags
Table of Contents
Methods
- load() : array<string|int, mixed>
- Break a public or private key down into its constituent components
- savePrivateKey() : string
- Convert a private key to the appropriate format.
- savePublicKey() : string
- Convert a public key to the appropriate format
Methods
load()
Break a public or private key down into its constituent components
public
static load(string $key[, string $password = '' ]) : array<string|int, mixed>
Parameters
- $key : string
- $password : string = ''
-
optional
Tags
Return values
array<string|int, mixed>savePrivateKey()
Convert a private key to the appropriate format.
public
static savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array<string|int, mixed> $primes, array<string|int, mixed> $exponents, array<string|int, mixed> $coefficients[, string $password = '' ]) : string
Parameters
- $n : BigInteger
- $e : BigInteger
- $d : BigInteger
- $primes : array<string|int, mixed>
- $exponents : array<string|int, mixed>
- $coefficients : array<string|int, mixed>
- $password : string = ''
-
optional
Tags
Return values
stringsavePublicKey()
Convert a public key to the appropriate format
public
static savePublicKey(BigInteger $n, BigInteger $e) : string
Parameters
- $n : BigInteger
- $e : BigInteger