CAS password encryption verification

CAS password encryption verification

1. Modify the configuration file application.properties

Add the following configuration at the end of the file

cas.authn.jdbc.query[0].passwordEncoder.type=DEFAULT
cas.authn.jdbc.query[0].passwordEncoder.characterEncoding=UTF-8
#MD5加密策略
cas.authn.jdbc.query[0].passwordEncoder.encodingAlgorithm=MD5

2. Password MD5 encryption

Execute in mysql:

select MD5('123456')

Insert picture description here

3. Restart the service and verify

slightly

Finish

Guess you like

Origin blog.csdn.net/Asia1752/article/details/110001091