Skip to content

Store passwords securely by encrypting instead of plain text #7331

Closed
@YongGoose

Description

@YongGoose

As you can see in this PR, passwords are currently being stored in plain text.
(I believe this task should be taken after this PR is merged ❗️)

This poses a security vulnerability, so it would be better to encrypt them.

Deliverables

  • After displaying the password in the console, encrypt it
  • Use PasswordEncoder for any password comparison logic
  • Update related test code accordingly (It should be sufficient to update the smoke test code written in 52cbf74)

Since displaying the password in the console is already implemented, you just need to pass the encrypted password when creating the User object.


Since a PasswordEncoder bean already exists in WebSecurityConfig, it should be straightforward to use it for the implementation.

Related Links

Metadata

Metadata

Assignees

No one assigned

    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