def get_rsa_public_key(n, e):
 n = int(binascii.hexlify(jwt.utils.base64url_decode(bytes(n))), 16)
 e = int(binascii.hexlify(jwt.utils.base64url_decode(bytes(e))), 16)
 pub = RSAPublicNumbers(e, n).public_key(default_backend())
 return pub.public_bytes(encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo)

def get_rsa_public_key ( n , e ) : n = int ( binascii . hexlify ( jwt . utils . base64url_decode ( bytes ( n ) ) ) , 16 ) e = int ( binascii . hexlify ( jwt . utils . base64url_decode ( bytes ( e ) ) ) , 16 ) pub = RSAPublicNumbers ( e , n ) . public_key ( default_backend ( ) ) return pub . public_bytes ( encoding = serialization . Encoding . PEM , format = serialization . PublicFormat . SubjectPublicKeyInfo )
retrieve an rsa public key based on a module and exponent as provided by the jwks format .