diff options
author | Barry Mead <barrymead@cox.net> | 2010-02-17 04:57:33 -0700 |
---|---|---|
committer | Barry Mead <barrymead@cox.net> | 2010-02-17 04:57:33 -0700 |
commit | 9fa84ac5887779234885ea3fa4e1073f29c945bc (patch) | |
tree | a1adbe542848229e3553bffa5f8fc96c806aa5ae | |
parent | cecc5e76508084340d2fb5d6b67366df5759ee54 (diff) | |
download | rsa-git-9fa84ac5887779234885ea3fa4e1073f29c945bc.tar.gz |
more consistant instructions between encrypt and decrypt
-rw-r--r-- | rsa/__init__.py | 4 |
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") |