Home | History | Annotate | Download | only in Lib

Lines Matching refs:salt

15     """Class representing a salt method per the Modular Crypt Format or the
23 """Generate a salt for the specified method.
60 def crypt(word, salt=None):
61 """Return a string representing the one-way hash of a password, with a salt
64 If ``salt`` is not specified or is ``None``, the strongest
65 available method will be selected and a salt generated. Otherwise,
66 ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
70 if salt is None or isinstance(salt, _Method):
71 salt = mksalt(salt)
72 return _crypt.crypt(word, salt)
81 salt = mksalt(method, rounds=rounds)
82 result = crypt('', salt)