Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
minibear2021 committed Sep 17, 2021
2 parents 9a20baa + bad5140 commit 0bfbe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def rsa_encrypt(text, certificate):

```python
def rsa_decrypt(ciphertext, private_key):
data = private_key.decrypt(ciphertext=b64decode(ciphertext), padding=OAEP(mgf=MGF1(algorithm=SHA1), algorithm=SHA1))
data = private_key.decrypt(ciphertext=b64decode(ciphertext), padding=OAEP(mgf=MGF1(algorithm=SHA1()), algorithm=SHA1()))
result = data.decode('UTF-8')
return result
```

0 comments on commit 0bfbe10

Please sign in to comment.