为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA。

在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置:

#passwords.encryption.algorithm=BCRYPT/10
#passwords.encryption.algorithm=MD2
#passwords.encryption.algorithm=MD5
#passwords.encryption.algorithm=NONE
passwords.encryption.algorithm=PBKDF2WithHmacSHA1/160/128000
#passwords.encryption.algorithm=SHA
#passwords.encryption.algorithm=SHA-256
#passwords.encryption.algorithm=SHA-384
#passwords.encryption.algorithm=SSHA
#passwords.encryption.algorithm=UFC-CRYPT

改为:

#passwords.encryption.algorithm=BCRYPT/10
#passwords.encryption.algorithm=MD2
#passwords.encryption.algorithm=MD5
#passwords.encryption.algorithm=NONE
#passwords.encryption.algorithm=PBKDF2WithHmacSHA1/160/128000
passwords.encryption.algorithm=SHA
#passwords.encryption.algorithm=SHA-256
#passwords.encryption.algorithm=SHA-384
#passwords.encryption.algorithm=SSHA
#passwords.encryption.algorithm=UFC-CRYPT

 

相关文章:

  • 2021-09-16
  • 2021-09-09
  • 2021-06-06
  • 2021-09-25
  • 2021-09-18
  • 2021-08-29
猜你喜欢
  • 2021-06-19
  • 2021-11-27
  • 2021-09-16
  • 2021-11-05
  • 2021-11-11
相关资源
相似解决方案