RSAKeyPair
classin packageklyn.cryptography
public class RSAKeyPair extends Object:
PEM-encoded RSA key pair.
import klyn.cryptography
keys = RSAKeyPairGenerator().generateKeyPair()
print(keys.publicKeyPem.startsWith("-----BEGIN PUBLIC KEY-----"))
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
bits |
RSA modulus size in bits. |
| public readonly |
privateKeyPem |
Private key in PEM format. |
| public readonly |
publicKeyPem |
Public key in PEM format. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
RSAKeyPair |
Creates a PEM-encoded RSA key pair. |
Methods
| Modifier and Type |
Member |
Description |
| public static |
fromMap |
Rebuilds a key pair from a serialized map. |
| public |
toMap |
Converts this key pair to a serializable map. |
| public override |
toString |
No summary. |