summaryrefslogtreecommitdiff
path: root/rsa/pkcs1.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/pkcs1.py')
-rw-r--r--rsa/pkcs1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/pkcs1.py b/rsa/pkcs1.py
index 8c6d290..1274fe3 100644
--- a/rsa/pkcs1.py
+++ b/rsa/pkcs1.py
@@ -214,7 +214,7 @@ def decrypt(crypto, priv_key):
keys easier.
>>> crypto = encrypt('hello', pub_key)
- >>> crypto = 'X' + crypto[1:] # change the first byte
+ >>> crypto = crypto[0:5] + 'X' + crypto[6:] # change a byte
>>> decrypt(crypto, priv_key)
Traceback (most recent call last):
...