hash the pass #13
					 1 changed files with 0 additions and 6 deletions
				
			
		
							
								
								
									
										6
									
								
								auth.py
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								auth.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -25,12 +25,6 @@ def read_pwdb(PWDB_PATH):
 | 
			
		|||
        pwdb = {}
 | 
			
		||||
    return pwdb
 | 
			
		||||
 | 
			
		||||
# def get_salt(username):
 | 
			
		||||
#     ''' will return a unique variable'''
 | 
			
		||||
 | 
			
		||||
#     salt = 
 | 
			
		||||
#     return salt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def pwhash(password):
 | 
			
		||||
    hashed_pass = hashlib.sha256(password.encode('utf-8')).hexdigest()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue