public abstract class AbstractSymmetricCrypto extends Object implements SymmetricCrypto
Modifier and Type | Field and Description |
---|---|
protected cn.hutool.crypto.symmetric.SymmetricCrypto |
symmetricCrypto |
Constructor and Description |
---|
AbstractSymmetricCrypto() |
Modifier and Type | Method and Description |
---|---|
String |
decryptStr(String data)
解密Hex(16进制)或Base64表示的字符串,默认UTF-8编码
|
String |
encryptBase64(String data)
加密,使用UTF-8编码
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initEncryptAlgorithm
public String encryptBase64(String data)
SymmetricCrypto
encryptBase64
in interface SymmetricCrypto
data
- 被加密的字符串public String decryptStr(String data)
SymmetricCrypto
decryptStr
in interface SymmetricCrypto
data
- 被解密的StringCopyright © 2022 Pivotal Software, Inc.. All rights reserved.