~vomun-developers/anonplus/vomun-trunk

« back to all changes in this revision

Viewing changes to src/libs/encryption.py

  • Committer: AJ00200
  • Date: 2011-10-12 01:56:51 UTC
  • Revision ID: git-v1:8bb68b5c9720d4a6d458a09b795072b27ec31c2d
Adding submitted code src/uis/web.py as well as a small change to src/libs/encryption.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import gnupg
 
2
try:
 
3
    gpg = gnupg.GPG(gnupghome = '') # TODO: read path from config
 
4
except ValueError:
 
5
    print('[*] ERROR: GPG does not appear to be installed.')
2
6
 
3
7
def generate_key(keylength = 2048):
4
8
    '''Generate a key and return the key ID'''
18
22
    
19
23
def verify(string):
20
24
    '''Verify the signature on `string` and return the signing key ID'''
21
 
    pass
 
 
b'\\ No newline at end of file'
 
25
    pass