public final class EncryptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
base64PrettyPrint(byte[] bytes) |
static String |
base64PrettyPrint(String base64) |
static byte[] |
fromBase64(String string) |
static String |
getMD5Sum(byte[] content) |
static String |
getMD5Sum(File file) |
static String |
getMD5Sum(InputStream stream) |
static String |
getMD5Sum(String content) |
static String |
toBase64(byte[] bytes) |
public static String getMD5Sum(String content) throws NoSuchAlgorithmException
content - NoSuchAlgorithmExceptionpublic static String getMD5Sum(byte[] content) throws NoSuchAlgorithmException
content - NoSuchAlgorithmExceptionpublic static String getMD5Sum(File file) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic static String getMD5Sum(InputStream stream) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic static String base64PrettyPrint(byte[] bytes) throws IOException
IOExceptionpublic static String base64PrettyPrint(String base64) throws IOException
IOExceptionpublic static byte[] fromBase64(String string) throws IOException
IOExceptionpublic static String toBase64(byte[] bytes) throws IOException
IOExceptionCopyright © 2014. All rights reserved.