~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 03:10:58 UTC
  • Revision ID: git-v1:7db11ced1c5e8dd39dd61bb111932d5e4ed2eb69
Added warnings about insecure RSA code. See Bug #892416.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
'''Holds common encryption functions/classes which will probably be used by
2
2
other encryption algorithms.
 
3
WARNING: This code is not secure. We need PKCS#1 padding to prevent attacks
 
4
against RSA!!!!
3
5
'''
4
6
import Crypto.PublicKey.RSA
5
7
import hashlib