Skip to content

Passwords should not be stored in plain text #37

@AshesITR

Description

@AshesITR

Passwords should never ever be stored in plain.
Even encrypting the database does not prevent an admin from seeing the passwords.

Instead, you should use a proper password hashing algorithm such as scrypt to store irreversible password hashes and check if the hash is valid for a provided password in check_credentials.

See here for more information.
In the implementation, you only need to use hashPassword() when storing the password and then subsequently use verifyPassword(hash, password) instead of pwd == password.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions