类 PlatformRSAUtils
java.lang.Object
com.iplatform.base.util.PlatformRSAUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static final StringgetAesDecryptValue(String encryptString) 使用公共密钥,解密密码数据。static final StringgetRsaDecryptValue(String encryptString, String privateKeyString) 返回加密之前的原始内容(解密原始字符串)static final PrivateKeygetRsaPrivateKey(String privateKeyString) 根据私钥字符串,生成对应的私钥对象。
-
字段详细资料
-
构造器详细资料
-
PlatformRSAUtils
public PlatformRSAUtils()
-
-
方法详细资料
-
getAesDecryptValue
使用公共密钥,解密密码数据。目前APP端使用(电商)
- 参数:
encryptString-- 返回:
-
getRsaDecryptValue
返回加密之前的原始内容(解密原始字符串)- 参数:
encryptString- 加密的内容(RSA)privateKeyString- 私钥字符串- 返回:
-
getRsaPrivateKey
根据私钥字符串,生成对应的私钥对象。
RSA标准算法,PKCS8EncodedKeySpec- 参数:
privateKeyString-- 返回:
-