getRSAPublicKey

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

Return

RSA public key.

Parameters

name

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


open fun getRSAPublicKey(name: String, length: Int): PublicKey

Generates an RSA keypair and returns the public key.

Return

RSA public key.

Parameters

name

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

length

Key length.