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