MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / apache_sha1_passwd

Function apache_sha1_passwd

lib/utils/hash.py:272–280  ·  view source on GitHub ↗

>>> apache_sha1_passwd(password='testpass') '{SHA}IGyAQTualsExLMNGt9JRe4RGPt0='

(password, **kwargs)

Source from the content-addressed store, hash-verified

270 return retVal.upper() if uppercase else retVal.lower()
271
272def apache_sha1_passwd(password, **kwargs):
273 """
274 >>> apache_sha1_passwd(password='testpass')
275 '{SHA}IGyAQTualsExLMNGt9JRe4RGPt0='
276 """
277
278 password = getBytes(password)
279
280 return "{SHA}%s" % getText(base64.b64encode(sha1(password).digest()))
281
282def ssha_passwd(password, salt, **kwargs):
283 """

Callers

nothing calls this directly

Calls 2

getBytesFunction · 0.90
getTextFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…