A lightweight implementation of JSON Web Signatures (JWS) for signing and verifying payloads with HMAC, RSA, and ECDSA algorithms. Version 0.1.3 is the current release with infrequent updates; the library is in maintenance mode.
pip install jwsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic sign and verify with HMAC SHA-256.
Switch to 'PyJWT' or 'python-jose' for long-term support.
Always validate algorithm against a whitelist; avoid passing user-supplied algorithm.
Ensure payload is a dict. Convert lists or strings to dict if needed.
Use 'from jws import sign' or 'from jws import *' (not recommended).
Ensure same secret and algorithm are used for both sign and verify.
Wrap payload in a dict, e.g., {'data': payload_list}.No dependency data recorded yet.