getRSAPrivateKey

Generates an RSA keypair and returns the private key of length 2048.

Return

RSA private key.

Parameters

name

Alias of the entry in which the generated key will appear in Android KeyStore.


open fun getRSAPrivateKey(name: String, length: Int): PrivateKey

Generates an RSA keypair and returns the private key.

Return

RSA private key.

Parameters

name

Alias of the entry in which the generated key will appear in Android KeyStore.

length

Key length.