| Modifier and Type | Field and Description |
|---|---|
protected AESCrypto |
mAESCrypto |
protected byte[] |
mEncryptAESKey |
protected RSACrypto |
mRSACrypto |
protected static java.lang.String |
TAG |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
byteToHexString(byte b) |
byte[] |
decode(byte[] encryptData)
解密
|
byte[] |
encode(byte[] rawData)
加密
|
void |
initDecoder(java.security.PrivateKey privateKey) |
boolean |
initEncoder(java.security.PublicKey publicKey) |
static FilterCrypto |
newDecoder(java.security.PrivateKey keyPair)
创建解码器
|
static FilterCrypto |
newEncoder(java.security.PublicKey keyPair)
创建编码器
|
static java.lang.String |
strToBinary(byte[] bytes) |
protected static final java.lang.String TAG
protected RSACrypto mRSACrypto
protected AESCrypto mAESCrypto
protected byte[] mEncryptAESKey
public static FilterCrypto newEncoder(java.security.PublicKey keyPair)
keyPair - public static FilterCrypto newDecoder(java.security.PrivateKey keyPair)
keyPair - public boolean initEncoder(java.security.PublicKey publicKey)
public byte[] encode(byte[] rawData)
Cryptopublic void initDecoder(java.security.PrivateKey privateKey)
public byte[] decode(byte[] encryptData)
Cryptopublic static java.lang.String strToBinary(byte[] bytes)
public static java.lang.String byteToHexString(byte b)