java.lang.Object
tech.mhuang.pacebox.springboot.autoconfiguration.datasecure.AbstractDataSecure
直接已知子类:
AESDataSecureImpl, DESDataSecureImpl

public abstract class AbstractDataSecure extends Object
加解密数据抽象(可自行实现)
从以下版本开始:
1.0.0
作者:
mhuang
  • 构造器详细资料

    • AbstractDataSecure

      public AbstractDataSecure()
  • 方法详细资料

    • encrypt

      public abstract String encrypt(String content, String pwd) throws Exception
      数据加密
      参数:
      content - 原文
      pwd - 公钥
      返回:
      返回加密密文
      抛出:
      Exception - 异常
    • decrypt

      public abstract String decrypt(String content, String pwd) throws Exception
      数据解密
      参数:
      content - 密文
      pwd - 私钥
      返回:
      返回原文
      抛出:
      Exception - 异常