I am having trouble using sha256 hash for a variable. Here is my code:
var = 'password'
hashedWord = sha256(b var).hexdigest()
print(hashedWord)
I know it would be easier to do this:
hashedWord = sha256(b'password').hexdigest()
print(hashedWord)
But I don't want to do it that way. Can anyone help?