Skip to main content

Module rsa_utils

Module rsa_utils 

Source
Expand description

RSA key pair generation and encoding utilities.

Ported from net/minecraft/util/Crypt.java

Enums§

CryptError
Errors that can occur during cryptographic operations

Functions§

generate_key_pair
Generates a 1024-bit RSA key pair.
public_key_from_bytes
Parses an RSA public key from DER-encoded X.509 format bytes.
public_key_from_pem
Parses an RSA public key from PEM format string.
public_key_to_bytes
Converts an RSA public key to DER-encoded X.509 format bytes.
public_key_to_pem
Converts an RSA public key to PEM format string.