def test_b32e_nulls_short(self): i = "\x00" * 4 o = "AAAAAAA" self.assertEqual(b32e(i), o)
def test_b32e_nulls(self): i = "\x00" * 5 o = "AAAAAAAA" self.assertEqual(b32e(i), o)
def hash_password(password, nonce): return b32e(tiger.new(password + b32d(nonce)).digest())