~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 16:43:39 UTC
  • Revision ID: git-v1:87d60c3ef0bd133aed688d7b1624df5b89d9de1f
Removed useless debug output

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        
23
23
    def encrypt(self, data):
24
24
        '''Encrypt `data` with this encryption algorithm.'''
25
 
        print(' * Encrypting: %s' % data)
26
25
        edata = keys[self.dest].encrypt(data, '')
27
 
        if str(type(edata)) == "<type 'tuple'>":
28
 
            print('  * edata is a tuple:')
29
 
            print('  * Encr tuple: %s' % str(edata))
30
 
        print('')
31
 
        print(' * edata[0]  : %s' % edata[0])
32
26
        return edata[0]
33
27
 
34
28
    def decrypt(self, data):