Skip to content

Commit f993fa8

Browse files
author
Michael Davis
committed
default to pycrypto backend
1 parent 7b9310b commit f993fa8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ necessary, other RSA backends are supported. Both pycrpyto and crytography are o
4040
In order to use a custom backend, install python-jose with the appropriate extra.
4141

4242
::
43+
4344
$ pip install python-jose[pycrypto]
4445
$ pip install python-jose[crytography]
4546

47+
4648
Usage
4749
-----
4850

jose/backends/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
try:
3-
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
4-
except ImportError:
53
from jose.backends.pycrypto_backend import RSAKey
6-
4+
except ImportError:
5+
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
6+
77
try:
88
from jose.backends.cryptography_backend import CryptographyECKey as ECKey
99
except ImportError:

0 commit comments

Comments
 (0)