public class SymmetricEncryptHelper extends Object
| Constructor and Description |
|---|
SymmetricEncryptHelper(byte[] key) |
SymmetricEncryptHelper(byte[] key,
String algorithm) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] value) |
static byte[] |
decrypt(byte[] key,
byte[] value) |
byte[] |
encypt(byte[] value) |
static byte[] |
encypt(byte[] key,
byte[] value) |
static byte[] |
fromHexString(String value)
16进制显示数据
|
String |
getAlgorithm() |
static String |
toHexString(byte[] value)
16进制显示数据
|
public SymmetricEncryptHelper(byte[] key)
public SymmetricEncryptHelper(byte[] key,
String algorithm)
public byte[] encypt(byte[] value)
public byte[] decrypt(byte[] value)
public String getAlgorithm()
public static String toHexString(byte[] value)
value - 字节数组public static byte[] fromHexString(String value)
value - 字节数组public static byte[] encypt(byte[] key,
byte[] value)
public static byte[] decrypt(byte[] key,
byte[] value)
Copyright © 2005–2018 The Beangle Software. All rights reserved.