~vomun-developers/anonplus/vomun-trunk

« back to all changes in this revision

Viewing changes to src/libs/encryption/rsa.py

  • Committer: AJ00200
  • Date: 2011-11-19 02:47:01 UTC
  • Revision ID: git-v1:3bfd046fccbf86274ae11c34a1725c497a6d6bd8
Make libs.encryption.rsa.import_key return the hash of the imported key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    keys[sha256] = key
92
92
    
93
93
    save_keys()
94
 
    return True
 
94
    return sha256
95
95
        
96
96
def export_key(hash, secret = False):
97
97
    '''Export the key with the given key ID. If `secret` is set to True, the