diff --git a/README.rst b/README.rst index cc17feca..b64d5d4c 100644 --- a/README.rst +++ b/README.rst @@ -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 ----- diff --git a/jose/backends/__init__.py b/jose/backends/__init__.py index 73daa37a..82b5c2f6 100644 --- a/jose/backends/__init__.py +++ b/jose/backends/__init__.py @@ -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: