Back to index

python-bcrypt  0.2
Public Member Functions
test.TestRadix Class Reference

List of all members.

Public Member Functions

def test_00__test_vectors
def test_01__gensalt

Detailed Description

Definition at line 65 of file

Member Function Documentation

Definition at line 66 of file

00067        def test_00__test_vectors(self):
00068               for plain, salt, expected in test_vectors:
00069                      self.assertEqual(bcrypt.hashpw(plain, salt), expected)

Definition at line 70 of file

00071        def test_01__gensalt(self):
00072               for plain, salt, expected in test_vectors:
00073                      for i in range(4,14,2):
00074                             salt = bcrypt.gensalt(i)
00075                             crypted = bcrypt.hashpw(plain, salt)
00076                             crypted2 = bcrypt.hashpw(plain, crypted)
00077                             self.assertEqual(crypted, crypted2)

Here is the call graph for this function:

The documentation for this class was generated from the following file: