getRSAPublicString

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

Return

RSA public key string.

Parameters

name

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


open fun getRSAPublicString(name: String, length: Int): String

Generates an RSA keypair and returns the encoded public key string.

Return

RSA public key string.

Parameters

name

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

length

Key length.