1、使用apache的codec jar包对string进行加密,先下载并引入jar包:

  http://commons.apache.org/proper/commons-codec/

2、生成:

String sign = DigestUtils.shaHex(str);

 

相关文章:

  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-03-08
相关资源
相似解决方案