legacy_encryption
exception human_protocol_sdk.legacy_encryption.DecryptionError
class human_protocol_sdk.legacy_encryption.Encryption
CIPHER
ELLIPTIC_CURVE : EllipticCurve = <cryptography.hazmat.primitives.asymmetric.ec.SECP256K1 object>
EllipticCurve = <cryptography.hazmat.primitives.asymmetric.ec.SECP256K1 object>KEY_LEN = 32
MODE
PUBLIC_KEY_LEN : int = 64
int = 64decrypt(data, private_key, shared_mac_data=b'')
encrypt(data, public_key, shared_mac_data=b'')
generate_private_key()
static generate_public_key(private_key)
static is_encrypted(data)
exception human_protocol_sdk.legacy_encryption.InvalidPublicKey
Last updated