Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add back 'ES512' for backward compatibility (for now)ecdsa-bkwards-compat | Mark Adams | 2016-10-24 | 1 | -0/+1 |
| | |||||
* | Merge pull request #219 from mike9005/es521_fix | Mark Adams | 2016-10-24 | 1 | -1/+1 |
|\ | | | | | Fix incorrectly named ECDSA algorithm | ||||
| * | Fix typo in Algorithms | Michael Collis | 2016-09-21 | 1 | -1/+1 |
| | | |||||
* | | Add JWK support for HMAC and RSA keysadd-jwk-for-hmac-rsa | Mark Adams | 2016-08-28 | 1 | -14/+144 |
|/ | | | | | | | - JWKs for RSA and HMAC can be encoded / decoded using the .to_jwk() and .from_jwk() methods on their respective jwt.algorithms instances - Replaced tests.utils ensure_unicode and ensure_bytes with jwt.utils versions | ||||
* | Fix a bug where a PEM private key as bytes raises a TypeErrorfix-type-error-on-bytes-key | Mark Adams | 2016-08-04 | 1 | -7/+7 |
| | |||||
* | Changed RSA-PSS algorithm to use the digest size of the hash function for ↵ | Mark Adams | 2015-05-19 | 1 | -2/+2 |
| | | | | the salt length instead of the maximum salt length per the JWA spec. Fixes #162. | ||||
* | Fix python3 and pep8 issues | esneider | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | Fix the ECDSA signature serialization format when using cryptography | esneider | 2015-05-13 | 1 | -2/+10 |
| | |||||
* | Added support for RSASSA-PSS algorithms (PS256, PS384, PS512) | Mark Adams | 2015-04-08 | 1 | -7/+45 |
| | |||||
* | Fixed some warnings in algorithms.py related to the relocation of some ↵ | Mark Adams | 2015-03-18 | 1 | -5/+11 |
| | | | | cryptography primitives | ||||
* | Added the ability to specify both a global alg whitelist for a PyJWT object ↵ | Mark Adams | 2015-03-17 | 1 | -13/+18 |
| | | | | and a whitelist for calls to decode. (Fixes #107) | ||||
* | Fix typo | José Padilla | 2015-03-17 | 1 | -1/+1 |
| | |||||
* | Added tests to cover invalid string validations on HMAC | Mark Adams | 2015-03-17 | 1 | -1/+7 |
| | |||||
* | Corrected a typo in an exception name | Mark Adams | 2015-03-17 | 1 | -1/+1 |
| | |||||
* | None algorithm now converts empty string to None prior to validation | Mark Adams | 2015-03-17 | 1 | -1/+4 |
| | |||||
* | Added a check to raise an error if alg = 'none' and a key is specified. ↵ | Mark Adams | 2015-03-17 | 1 | -1/+4 |
| | | | | (Fixes #106) | ||||
* | Fixed indentation and spacing to pass PEP8 | Mark Adams | 2015-03-17 | 1 | -2/+1 |
| | |||||
* | Added a check so that asymmetric keys cannot be used as HMAC secrets to fix #105 | Mark Adams | 2015-03-17 | 1 | -0/+7 |
| | |||||
* | Added back some parenthesis now that I remember how to write Python | Mark Adams | 2015-03-17 | 1 | -3/+3 |
| | |||||
* | Removed extra parenthesis around algorithm defaults. | Mark Adams | 2015-03-17 | 1 | -6/+6 |
| | |||||
* | Refactored api.py so that all JWT functions are now part of a PyJWT class. | Mark Adams | 2015-03-17 | 1 | -12/+11 |
| | | | | | | | | - Created a singleton instance to preserve jwt.encode, jwt.decode, jwt.register_algorithms existing public APIs - Renamed load and verify_signature to _load and _verify_signature since they are not part of the existing public API - Modified related tests to use PyJWT._load and PyJWT._verify_signature | ||||
* | Rearranged the way the SHA hash functions were laid out. | Mark Adams | 2015-03-17 | 1 | -6/+11 |
| | |||||
* | Made algorithm class dependence on hash functions more direct. | Mark Adams | 2015-03-15 | 1 | -11/+17 |
| | | | | | | | - Algorithms now have SHA256, SHA384, and SHA512 static properties that refer to the callable that instantiates their hash class - All algorithms now expect a class (callable) as their hash_alg now. This behavior was inconsistent before. | ||||
* | Changed header's alg parameter to be case sensitive per the JWT spec. | Mark Adams | 2015-01-24 | 1 | -1/+1 |
| | |||||
* | Added missing `sig` parameter to `sign()` method of the None algorithm. | Mark Adams | 2015-01-24 | 1 | -1/+1 |
| | |||||
* | Cleanup __init__ module | José Padilla | 2015-01-18 | 1 | -2/+2 |
| | | | | | - Expose public API - Move exceptions to separate module - Use relative imports | ||||
* | Tweak comment blocks | José Padilla | 2015-01-18 | 1 | -14/+19 |
| | |||||
* | Accidentally replaced a reference to bytes with text_type inadvertantly. ↵ | Mark Adams | 2015-01-18 | 1 | -1/+1 |
| | | | | Reverting... | ||||
* | Replaced reference to basestring with string_types that I missed when ↵ | Mark Adams | 2015-01-18 | 1 | -1/+1 |
| | | | | rebasing earlier. | ||||
* | Added comments for algorithms module and register_algorithm. | Mark Adams | 2015-01-18 | 1 | -0/+30 |
| | |||||
* | Fixed a couple of anomalies after the last rebase. | Mark Adams | 2015-01-18 | 1 | -11/+6 |
| | |||||
* | Algorithm base class methods now raise NotImplementedError | Mark Adams | 2015-01-18 | 1 | -3/+3 |
| | |||||
* | Fixed some style issues (reordered imports, removed unused imports, PEP8, etc.) | Mark Adams | 2015-01-18 | 1 | -1/+1 |
| | |||||
* | Created utils.py to hold functions like constant_time_compare and ↵ | Mark Adams | 2015-01-18 | 1 | -27/+2 |
| | | | | base64-encoding | ||||
* | Fixes #70. Refactored all HMAC, RSA, and EC code into seperate classes in ↵ | Mark Adams | 2015-01-18 | 1 | -0/+200 |
the algorithms module Added register_algorithm to add new algorithms. |