Lines Matching refs:salt
29 """Class representing a salt method per the Modular Crypt Format or the
37 """Generate a salt for the specified method.
74 def crypt(word, salt=None):
75 """Return a string representing the one-way hash of a password, with a salt
78 If ``salt`` is not specified or is ``None``, the strongest
79 available method will be selected and a salt generated. Otherwise,
80 ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
84 if salt is None or isinstance(salt, _Method):
85 salt = mksalt(salt)
86 return _crypt.crypt(word, salt)
95 salt = mksalt(method, rounds=rounds)
98 result = crypt('', salt)