Skip to content

store hashed passwords securely #40

@derhuerst

Description

@derhuerst

Currently, it seems that ParkAPI v3 stores passwords only hashed with a single iteration of SHA256 hashing, which can be cracked within minutes for short passwords with today's hardware:

https://github.com/mobidata-bw/park-api-v3/blob/8f5da93266ce9f5d1c79bdfc0ca47ddf0786ff5f/webapp/common/server_auth/server_auth_users.py#L92-L94

It would be good to use some industry standard like bcrypt, which some guide on how to do password hashing in Python also mentions, among others. (I just googled for 5s, it is not necessarily the best resource on this topic.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions