# Functions
*
* 生成指定字符串的对称密码
*/.
No description provided by the author
No description provided by the author
No description provided by the author
16进制字符串转换成byte.
*
* 非对称解密
*
* @param privkey 解密的密钥
* @param ciphertext 已经加密的数据
* @return 解密后的明文
* @throws EncryptException
*/.
No description provided by the author
*
* 对称解密
*
* @param key 解密的密钥
* @param raw 已经加密的数据
* @return 解密后的明文
* @throws EncryptException
*/.
No description provided by the author
16进制转换字符串.
Hmac-sha256加密.
*
* 非对称加密
*
* @param key 加密的密钥
* @param data 待加密的明文数据
* @return 加密后的数据
* @throws EncryptException
*/.
*
对对称密钥用对方公钥加密
*/.
*
* 对称加密
*
* @param key 加密的密钥
The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256
* @param data 待加密的明文数据
* @return 加密后的数据
* @throws EncryptException
*/.
*
* 根据用户名和密钥对生成 X509 证书
*
*
* @param user
* @param keyPair
* @return
*/.
*
* 生成非对称的密钥对
*
* @return
*/.
*
* 生成随机对称秘钥
*
* @param algorithm
* @return
* @throws NoSuchAlgorithmException
*/.
No description provided by the author
No description provided by the author
获取hash加密字符串.
No description provided by the author
*
* 从证书中的私钥二进制字符串表示中还原私钥
*
*
* @param keyValue
* @return
*/.
*
* 从公钥字符串表示中还原公钥
*
*
* @param keyValue
* @return
* @throws NoSuchAlgorithmException
* @throws InvalidKeySpecException
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
*
对对称密钥用对方公钥加密
*/.