pythonauthenticationbcryptpos

How do I store and read hashed passwords for a locally run POS python program?


I am using bcrypt, but I dont know what file formats to use and whats the best course of action. Did research on different sites but I didnt really find a good solution or an answer for bcrypt. I just need to store passwords locally, no recovery or email needed. I hope someone understands me, thanks :)


Solution

  • You could always look at sqlite3 as a database within the file system. If this seems too complicated for you then you could look at using a JSON file.

    If you are only handling 1 hash at a time then a text file would do but it seems you would need multiple so either SQLite or JSON would suit your needs.