Skip to content

jam.utils.rsa

rsa

Functions:

Name Description
generate_rsa_key_pair

RSA key generation utility.

generate_rsa_key_pair

generate_rsa_key_pair(
    key_size: int = 2048,
) -> dict[str, str]

RSA key generation utility.

Parameters:

Name Type Description Default
key_size int

Size of RSA key

2048

Returns:

Type Description
dict

with public and private keys in format:

{
    "public": "some_key",
    "private": "key"
}

FILE PATH: jam/utils/rsa.py