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

Function crypt_generic_passwd

lib/utils/hash.py:355–367  ·  view source on GitHub ↗

Reference(s): http://docs.python.org/library/crypt.html http://helpful.knobs-dials.com/index.php/Hashing_notes http://php.net/manual/en/function.crypt.php http://carey.geek.nz/code/python-fcrypt/ >>> crypt_generic_passwd(password='rasmuslerdorf', salt='rl',

(password, salt, **kwargs)

Source from the content-addressed store, hash-verified

353 return retVal.upper() if uppercase else retVal.lower()
354
355def crypt_generic_passwd(password, salt, **kwargs):
356 """
357 Reference(s):
358 http://docs.python.org/library/crypt.html
359 http://helpful.knobs-dials.com/index.php/Hashing_notes
360 http://php.net/manual/en/function.crypt.php
361 http://carey.geek.nz/code/python-fcrypt/
362
363 >>> crypt_generic_passwd(password='rasmuslerdorf', salt='rl', uppercase=False)
364 'rl.3StKT.4T8M'
365 """
366
367 return getText(crypt(password, salt))
368
369def unix_md5_passwd(password, salt, magic="$1$", **kwargs):
370 """

Callers

nothing calls this directly

Calls 2

getTextFunction · 0.90
cryptFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…