Currently my database stores the 'password' as text, but this says it does not work as shown below (The password is also converted into MD5 hash):
Password 'function':
user_in = input("Please enter a password next to this text: \n")
Password = hashlib.md5()
Password.update(user_in.encode("utf-8"))
Error message:
sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type.
What I want to know is how I store the hash in a database in SQLITE3
Edit:
cursor=db.cursor()
sql="insert into Accounts (Username, Password) values(?,?)"
cursor.execute(sql, (Username, Password))
db.commit()
Edit 2:
user_in = input("Please enter a password next to this text: \n")
Password = hashlib.md5()
Password.update(user_in.encode("utf-8"))
Password.hexdigest()