MCPcopy
hub / github.com/cherrypy/cherrypy / checkpasshash

Method checkpasshash

cherrypy/test/test_auth_basic.py:48–50  ·  view source on GitHub ↗
(realm, user, password)

Source from the content-addressed store, hash-verified

46 userhashdict_u = {'xюзер': md5(ntob('їжа', 'utf-8')).hexdigest()}
47
48 def checkpasshash(realm, user, password):
49 p = userhashdict.get(user)
50 return p and p == md5(ntob(password)).hexdigest() or False
51
52 def checkpasshash_u(realm, user, password):
53 p = userhashdict_u.get(user)

Callers

nothing calls this directly

Calls 2

ntobFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected