public class EncryptHelper extends Object
| Constructor and Description |
|---|
EncryptHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64Decoder(String dest)
BASE64解码
|
static String |
base64Encoder(String src)
BASE64编码
|
static void |
decrypt(String key,
InputStream is,
OutputStream os) |
static void |
doCopy(InputStream is,
OutputStream os) |
static void |
encrypt(String key,
InputStream is,
OutputStream os) |
static String |
md5Digest(String src)
MD5数字签名
|
public static String md5Digest(String src) throws Exception
src - Exceptionpublic static String base64Encoder(String src) throws Exception
src - Exceptionpublic static String base64Decoder(String dest) throws Exception
dest - Exceptionpublic static void encrypt(String key, InputStream is, OutputStream os) throws Exception
Exceptionpublic static void decrypt(String key, InputStream is, OutputStream os) throws Exception
Exceptionpublic static void doCopy(InputStream is, OutputStream os) throws IOException
IOExceptionCopyright © 2023. All rights reserved.