MediaWiki  1.29.2
captcha-old.py File Reference

Go to the source code of this file.

Namespaces

 captcha-old
 

Functions

def captcha-old.gen_captcha (text, fontname, fontsize, file_name)
 
def captcha-old.gen_subdir (basedir, md5hash, levels)
 
def captcha-old.pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
def captcha-old.read_wordlist (filename)
 
def captcha-old.try_pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
def captcha-old.wobbly_copy (src, wob, col, scale, ang)
 

Variables

 captcha-old.action
 
 captcha-old.args
 
def captcha-old.blacklist = read_wordlist(opts.blacklist)
 
 captcha-old.count = opts.count
 
 captcha-old.default
 
 captcha-old.dirs = opts.dirs
 
string captcha-old.filename = "image_%s_%s.png" % (salt, md5hash)
 
 captcha-old.fill = opts.fill
 
 captcha-old.font = opts.font
 
 captcha-old.fontsize = opts.font_size
 
 captcha-old.help
 
 captcha-old.key = opts.key
 
 captcha-old.md5hash = hashlib.md5((key+salt+word+key+salt).encode('utf-8')).hexdigest()[:16]
 
 captcha-old.metavar
 
 captcha-old.nonalpha = re.compile('[^a-z]')
 
 captcha-old.opts
 
 captcha-old.output = opts.output
 
 captcha-old.parser = OptionParser()
 
string captcha-old.salt = "%08x" % random.randrange(2**32)
 
 captcha-old.script_dir = os.path.dirname(os.path.realpath(__file__))
 
def captcha-old.subdir = gen_subdir(output, md5hash, dirs)
 
 captcha-old.type
 
 captcha-old.verbose = opts.verbose
 
def captcha-old.word = pick_word(words, blacklist, verbose, opts.number_words, opts.min_length, opts.max_length)
 
 captcha-old.wordlist = opts.wordlist
 
 captcha-old.words = None