mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:42:56 +00:00 
			
		
		
		
	Rename variable to be more precise
This commit is contained in:
		@@ -9,9 +9,9 @@ class PasswordHasher:
 | 
			
		||||
        return PasswordHasher.scrypt(password, salt).hex()+salt.hex()
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def verify(password, hashdigest):
 | 
			
		||||
        salt = bytes.fromhex(hashdigest[64:])
 | 
			
		||||
        hashdigest = bytes.fromhex(hashdigest[:64])
 | 
			
		||||
    def verify(password, salted_hash):
 | 
			
		||||
        salt = bytes.fromhex(salted_hash[64:])
 | 
			
		||||
        hashdigest = bytes.fromhex(salted_hash[:64])
 | 
			
		||||
        return PasswordHasher.scrypt(password, salt) == hashdigest
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user