Skip to content

Commit

Permalink
default to pycrypto backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Davis committed Jan 16, 2018
1 parent 7b9310b commit f993fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ necessary, other RSA backends are supported. Both pycrpyto and crytography are o
In order to use a custom backend, install python-jose with the appropriate extra.

::

$ pip install python-jose[pycrypto]
$ pip install python-jose[crytography]


Usage
-----

Expand Down
6 changes: 3 additions & 3 deletions jose/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

try:
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
except ImportError:
from jose.backends.pycrypto_backend import RSAKey

except ImportError:
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey

try:
from jose.backends.cryptography_backend import CryptographyECKey as ECKey
except ImportError:
Expand Down

0 comments on commit f993fa8

Please sign in to comment.