コード例 #1
0
    def test_encrypt2(self):
        p1 = encrypt("prueba")
        assert verify("prueba", p1)

        assert verify(
            "111111",
            "biicode$E4IwJiQEwJgzRkiJcc7Z2w$t7XxsRJrXnPeQmyfNtyNvh32xK2WTSiguCv5j9Nxh6A44lXTOoSjvHTfW2Vbdpi9YlOPypDo6Z1ssGnRizfk/g"
        )
コード例 #2
0
ファイル: user.py プロジェクト: pombredanne/bii-server
 def valid_password(self, plain_password):
     return verify(plain_password, self._encrypted_password)
コード例 #3
0
 def test_encrypt1(self):
     encrypted = encrypt("mandanga")
     self.assertTrue(verify("mandanga", encrypted))
     self.assertFalse(verify("", ""))
コード例 #4
0
    def test_encrypt2(self):
        p1 = encrypt("prueba")
        assert verify("prueba", p1)

        assert verify("111111", "biicode$E4IwJiQEwJgzRkiJcc7Z2w$t7XxsRJrXnPeQmyfNtyNvh32xK2WTSiguCv5j9Nxh6A44lXTOoSjvHTfW2Vbdpi9YlOPypDo6Z1ssGnRizfk/g")
コード例 #5
0
ファイル: user.py プロジェクト: biicode/bii-server
 def valid_password(self, plain_password):
     return verify(plain_password, self._encrypted_password)
コード例 #6
0
 def test_encrypt1(self):
     encrypted = encrypt("mandanga")
     self.assertTrue(verify("mandanga", encrypted))
     self.assertFalse(verify("", ""))
コード例 #7
0
 def validate_password(password, encrypted_password):
     return verify(password, encrypted_password)
コード例 #8
0
ファイル: encryption.py プロジェクト: biicode/bii-server
 def validate_password(password, encrypted_password):
     return verify(password, encrypted_password)