1.用户端:PASS = MD5(明文 + 固定salt)
2.服务端:PASS = MD5(用户输入 + 随机salt)
引入依赖包
<dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.8.1</version> </dependency>