Lines Matching refs:salt
38 salt = crypt.mksalt(method)
39 self.assertIn(len(salt) - method.salt_chars, {0, 1, 3, 4, 6, 7})
41 self.assertIn(method.ident, salt[:len(salt)-method.salt_chars])
69 salt = crypt.mksalt(method, rounds=rounds)
70 self.assertIn('$rounds=%d$' % rounds, salt)
71 self.assertEqual(len(salt) - method.salt_chars,
73 cr = crypt.crypt('mypassword', salt)
83 salt = crypt.mksalt(crypt.METHOD_BLOWFISH, rounds=1 << log_rounds)
84 self.assertIn('$%02d$' % log_rounds, salt)
85 self.assertIn(len(salt) - crypt.METHOD_BLOWFISH.salt_chars, {6, 7})
86 cr = crypt.crypt('mypassword', salt)