From 8f483c078b156ab62bc7c6ffb52a8137afef4954 Mon Sep 17 00:00:00 2001 From: roland Date: Wed, 18 Mar 2020 15:56:16 +0100 Subject: [PATCH] Editorial --- doc/jwe.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/jwe.rst b/doc/jwe.rst index 731c10b..f321111 100644 --- a/doc/jwe.rst +++ b/doc/jwe.rst @@ -38,7 +38,7 @@ The steps: needed information. 4. And then you encrypt as described in RFC7516_ . -There is a lower level way of doing the same it will look like this:: +There is a lower level way of doing the same, it will look like this:: >>> from cryptojwt.jwk.rsa import import_private_rsa_key_from_file >>> from cryptojwt.jwe.jwe_rsa import JWE_RSA @@ -61,14 +61,14 @@ Decrypting using the encrypted message above. >>> from cryptojwt.jwe.jwe import factory >>> from cryptojwt.jwk.rsa import RSAKey - >>> _decryptor = factory(jwt, alg="RSA1_5", enc="A128CBC-HS256") + >>> _decryptor = factory(jwe, alg="RSA1_5", enc="A128CBC-HS256") >>> _dkey = RSAKey(priv_key=priv_key) >>> msg = _decryptor.decrypt(jwe, [_dkey]) or if you know what you're doing:: >>> _decryptor = JWE_RSA() - >>> msg = _decryptor.decrypt(jwt, priv_key) + >>> msg = _decryptor.decrypt(jwe, priv_key)