Python's safest method to store and retrieve passwords from a database

后端 未结 5 1302

Looking to store usernames and passwords in a database, and am wondering what the safest way to do so is. I know I have to use a salt somewhere, but am not sure how to gene

5条回答
  •  忘掉有多难
    2020-12-04 10:45

    I think it is best to use a package dedicated to hashing passwords for this like passlib: http://packages.python.org/passlib/ for reasons as I explained here: https://stackoverflow.com/a/10948614/893857

提交回复
热议问题