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

Function ssha_passwd

lib/utils/hash.py:282–291  ·  view source on GitHub ↗

>>> ssha_passwd(password='testpass', salt='salt') '{SSHA}mU1HPTvnmoXOhE4ROHP6sWfbfoRzYWx0'

(password, salt, **kwargs)

Source from the content-addressed store, hash-verified

280 return "{SHA}%s" % getText(base64.b64encode(sha1(password).digest()))
281
282def ssha_passwd(password, salt, **kwargs):
283 """
284 >>> ssha_passwd(password='testpass', salt='salt')
285 '{SSHA}mU1HPTvnmoXOhE4ROHP6sWfbfoRzYWx0'
286 """
287
288 password = getBytes(password)
289 salt = getBytes(salt)
290
291 return "{SSHA}%s" % getText(base64.b64encode(sha1(password + salt).digest() + salt))
292
293def ssha256_passwd(password, salt, **kwargs):
294 """

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…