~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-20 01:41:43 UTC
  • Revision ID: git-v1:42179e5698db1759553290c5a2f63fd08f0a3136
Added additional debug outputs

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    def decrypt(self, data):
32
32
        '''Decrypt `data` with this encryption algorithm.'''
33
33
        print(' * Decrypting: %s' % data)
34
 
        return keys[self.source].decrypt(data[0])
 
34
        ddata = keys[self.source].decrypt(data[0])        
 
35
        print(' * Decrypted : %s' % ddata)
 
36
        return ddata
35
37
 
36
38
    def sign(self, data):
37
39
        '''Create a RSA signature for the given data'''