Legacy Knowledge Base
Published Jul. 2, 2025

Change of Password Encryption Algorithm

Written By

Jordi Rodó

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • The default password encryption algorithm is "PBKDF2WithHmacSHA1/160/128000
  • If you want to change to SHA-256, is the following setting correct?
  • If I make a change, how will the passwords of existing users be handled?

Environment

  • DXP 7.1, DXP 7.2, DXP 7.3, DXP 7.4

Resolution

  • You can change the password encryption algorithm with the following properties
    • passwords.encryption.algorithm=SHA-256
  • The following algorithms are supported
    • passwords.encryption.algorithm=BCRYPT/10
      passwords.encryption.algorithm=MD2
      passwords.encryption.algorithm=MD5
      passwords.encryption. algorithm=NONE
      passwords.encryption.algorithm=PBKDF2WithHmacSHA1/160/720000
      passwords.encryption.algorithm=SHA
      passwords.encryption. algorithm=SHA-256
      passwords.encryption.algorithm=SHA-384
      passwords.encryption.algorithm=SSHA
      passwords.encryption.algorithm=UFC-CRYPT
  • For existing users,the previous algorithm is used until the password is changed

Did this article resolve your issue ?

Legacy Knowledge Base