Changing a lost password
Hello,
I would like to reset the administrator password.
I followed the steps on the official documentation - did not work for me. Not able to generate hash of the new password. Could you please assist me?
import bcrypt >>> print(bcrypt.hashpw(<1234>.encode('utf-8'), bcrypt.gensalt()) File "
", line 1 print(bcrypt.hashpw(<1234>.encode('utf-8'), bcrypt.gensalt()) ^ SyntaxError: invalid syntax >>> print(bcrypt.hashpw(1234.encode('utf-8'), bcrypt.gensalt()) File " ", line 1 print(bcrypt.hashpw(1234.encode('utf-8'), bcrypt.gensalt()) ^ SyntaxError: invalid syntax
Hi @denizciftci-sec
You may want to set the password in quote, such as print(bcrypt.hashpw("1234".encode('utf-8'), bcrypt.gensalt())