File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ The steps:
38
38
needed information.
39
39
4. And then you encrypt as described in RFC7516 _ .
40
40
41
- There is a lower level way of doing the same it will look like this::
41
+ There is a lower level way of doing the same, it will look like this::
42
42
43
43
>>> from cryptojwt.jwk.rsa import import_private_rsa_key_from_file
44
44
>>> from cryptojwt.jwe.jwe_rsa import JWE_RSA
@@ -61,14 +61,14 @@ Decrypting using the encrypted message above.
61
61
>>> from cryptojwt.jwe.jwe import factory
62
62
>>> from cryptojwt.jwk.rsa import RSAKey
63
63
64
- >>> _decryptor = factory(jwt , alg = " RSA1_5" , enc = " A128CBC-HS256" )
64
+ >>> _decryptor = factory(jwe , alg = " RSA1_5" , enc = " A128CBC-HS256" )
65
65
>>> _dkey = RSAKey(priv_key = priv_key)
66
66
>>> msg = _decryptor.decrypt(jwe, [_dkey])
67
67
68
68
or if you know what you're doing::
69
69
70
70
>>> _decryptor = JWE_RSA()
71
- >>> msg = _decryptor.decrypt(jwt , priv_key)
71
+ >>> msg = _decryptor.decrypt(jwe , priv_key)
72
72
73
73
74
74
You can’t perform that action at this time.
0 commit comments