Changeset 2180 in products
- Timestamp:
- Apr 20, 2010 10:49:11 AM (13 years ago)
- Location:
- quintagroup.captcha.core/trunk/quintagroup/captcha/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/CaptchaTool.py
r1954 r2180 1 from Globals import InitializeClass 1 try: 2 from App.class_init import InitializeClass 3 except ImportError: 4 from Globals import InitializeClass 2 5 from AccessControl import ClassSecurityInfo 3 6 from Products.Transience.Transience import TransientObjectContainer -
quintagroup.captcha.core/trunk/quintagroup/captcha/core/utils.py
r1954 r2180 2 2 import re 3 3 import math 4 import md5 4 try: 5 import hashlib as md5 6 except ImportError: 7 import md5 5 8 from string import atoi 6 9 from random import randint … … 17 20 18 21 def encrypt1(s): 19 return md5. new(s).hexdigest().upper()22 return md5.md5(s).hexdigest().upper() 20 23 21 24 def getTransform(x, y, a, p, o):
Note: See TracChangeset
for help on using the changeset viewer.