summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Mead <barrymead@cox.net>2010-02-17 04:57:33 -0700
committerBarry Mead <barrymead@cox.net>2010-02-17 04:57:33 -0700
commit1c9a04ec4a16679c74d17645421607ffafb5ff6f (patch)
treea1adbe542848229e3553bffa5f8fc96c806aa5ae
parent86a8862cf3b2719794af3af29560c300ef01cd10 (diff)
downloadrsa-1c9a04ec4a16679c74d17645421607ffafb5ff6f.tar.gz
more consistant instructions between encrypt and decrypt
-rw-r--r--rsa/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa/__init__.py b/rsa/__init__.py
index 4e499fc..04eecde 100644
--- a/rsa/__init__.py
+++ b/rsa/__init__.py
@@ -509,14 +509,14 @@ def sign(message, key):
return chopstring(message, key['d'], key['p']*key['q'], encrypt_int)
def decrypt(cypher, key):
- """Decrypts a cypher with the private key 'key'"""
+ """Decrypts a string 'cypher' with the private key 'key'"""
if 'p' not in key:
raise Exception("You must use the private key with decrypt")
return gluechops(cypher, key['d'], key['p']*key['q'], decrypt_int)
def verify(cypher, key):
- """Verifies a cypher with the public key 'key'"""
+ """Verifies a string 'cypher' with the public key 'key'"""
if 'n' not in key:
raise Exception("You must use the public key with verify")