类 JasyptUtil

java.lang.Object
plus.hiver.common.utils.JasyptUtil

public class JasyptUtil extends Object
数据库连接密码加密

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 构造器详细资料

    • JasyptUtil

      public JasyptUtil()
  • 方法详细资料

    • encyptPwd

      public static String encyptPwd(String password, String value)
      Jasypt生成加密结果
      参数:
      password - 配置文件中设定的加密密码 jasypt.encryptor.password
      value - 待加密值
      返回:
      加密结果
    • decyptPwd

      public static String decyptPwd(String password, String value)
      解密
      参数:
      password - 配置文件中设定的加密密码 jasypt.encryptor.password
      value - 待解密密文
      返回:
      解密后内容
    • cryptor

      public static org.jasypt.encryption.pbe.config.SimpleStringPBEConfig cryptor(String password)
    • main

      public static void main(String[] args)