Does it really needed to use letter b when hashing a key? I'm just confused of its usage. Can I use the method 2 without using b'? And how can I insert a variable in method one?
from hashlib import blake2b
key = 'Hello'
blake2b(b'key').hexdigest()
versus
from hashlib import blake2b
key = 'Hello'
blake2b(key).hexdigest()