def compute_rsa_public_key(cls, e, n):
"""
Computes RSA public key based on provided RSA semi-primes (e, n)
and returns cryptography lib instance.
:return: object
"""
public_numbers = rsa.RSAPublicNumbers(e, n)
return public_numbers.public_key(default_backend())
评论列表
文章目录