0
Please help with my code .How do I stop it from calling the function rather it should just have the function definition
import hashlib import os print ("Enter your Password:") UserChosen = input() print ("User Password is : "+ UserChosen) salt =os.urandom(32).hex() print("Salt Password is : "+ salt) def salted_password(x, y): appended = UserChosen + salt result = hashlib.sha256(appended.encode()) hashed = result.hexdigest() return hashed print("Hashed Password is : ") print(salted_password(UserChosen,salt
2 Réponses
0
Well first of all I see some unfinished lines and second of all just dont call the function.. it's only called when you call it like functionname(args)..
0
Thanks for the feedback