abstract class Raw (View source)

Raw RSA Key Handler

Methods

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

Break a public or private key down into its constituent components

static array
savePublicKey(BigInteger $n, BigInteger $e)

Convert a public key to the appropriate format

Details

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

Break a public or private key down into its constituent components

Parameters

string $key
string $password optional

Return Value

array

static array savePublicKey(BigInteger $n, BigInteger $e)

Convert a public key to the appropriate format

Parameters

BigInteger $n
BigInteger $e

Return Value

array