Key generator interface to generate RSA keys.

author Niklas Keller
package Kelunik\Acme

 Methods

Generates a new key pair with the given length in bits.

generate(integer $bits) : \Kelunik\Acme\KeyPair
API
api

Parameters

$bits

integer

length of the key

Returns

\Kelunik\Acme\KeyPairgenerated key pair