Skip to main content

Compact pure-Python RSA verification.

rsalette provides a compact, < 200 lines, pure-Python 2+3, single file RSA verification library that is compatible with JSON Web Key.

It includes a JSON Web Signature (JWS) / JSON Web Token (JWT) verifier that can be used for OpenID Connect.

It includes asn1lette, a limited asn.1 parser that can parse RSA public keys from PEM or DER data.

rsalette comes with no warranty, but if you’d like to do an audit, it’s short.

Usage:

import rsalette
verifier = rsalette.PublicKey.from_jwk({'kty':'RSA', 'e':'AQAB', 'n': ...})
verified_message = verifier.verify(message, signature)

For JSON Web Token:

openid_configuration = { ... } # value from .well-known/openid-configuration
id_token = '...' # value from OpenID Connect remote user
jwks = requests.get(openid_configuration['jwks_uri']).json()
payload = rsalette.verify_jwt(id_token, jwks)

Release files for rsalette 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rsalette 0.4.2
File Size Uploaded
rsalette-0.4.2.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rsalette 0.4.2
File Interpreter ABI Platform
rsalette-0.4.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 12.1 kB

Release files / rsalette-0.4.2.tar.gz

Download URL rsalette-0.4.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
104536d2e74733d7118a6044d52926cc45cce42424d59d9f80322f0bc273cc0b
BLAKE2b-256 checksum
How to use checksums
78031ca74b88b9e9d16ef27de5973b4a878463a89a3a0600b1d985907a53b51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / rsalette-0.4.2-py2.py3-none-any.whl

Download URL rsalette-0.4.2-py2.py3-none-any.whl
Size 4.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
abd0e1d6e80aa329e36bbebcb8fc2e9928c743eb01a1f654d650d819dae43c1a
BLAKE2b-256 checksum
How to use checksums
b2b4ad267e37b99f89a6e426aa3dafda5d845a7508aff583745046a1b915a429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page