예제 #1
0
파일: test_utils.py 프로젝트: mardix/Juice
def test_encrypted_string():
    pw = "hello world"
    e = utils.encrypt_string(pw)
    v = utils.verify_encrypted_string(pw, e)
    assert v is True
예제 #2
0
 def password_matched(self, password):
     """
     Check if the password matched the hash
     :returns bool:
     """
     return utils.verify_encrypted_string(password, self.password_hash)
예제 #3
0
파일: __init__.py 프로젝트: mardix/Juice
 def password_matched(self, password):
     """
     Check if the password matched the hash
     :returns bool:
     """
     return utils.verify_encrypted_string(password, self.password_hash)
예제 #4
0
def test_encrypted_string():
    pw = "hello world"
    e = utils.encrypt_string(pw)
    v = utils.verify_encrypted_string(pw, e)
    assert v is True