public class SHA256Tools extends SecurityTools
Constructor and Description |
---|
SHA256Tools() |
Modifier and Type | Method and Description |
---|---|
static String |
getLowStr(byte[] bytes)
获取字节数组的加密结果
20180315 通过了与Apache Commons codec 的计算结果比对 方法说明: getLowStr 输入参数说明: @param bytes @return 输出参数说明: String |
static String |
getLowStr(File file)
获取文件的加密结果
20180315 通过了与Apache Commons codec 的计算结果比对 方法说明: getLowStr 输入参数说明: @param file @return 输出参数说明: String |
static String |
getLowStr(InputStream inputStream)
获取输入流的加密结果
20180315 通过了与Apache Commons codec 的计算结果比对 方法说明: getLowStr 输入参数说明: @param inputStream @return 输出参数说明: String |
static String |
getLowStr(String str)
获取字符串的加密结果
20180315 通过了与Apache Commons codec 的计算结果比对 方法说明: getLowStr 输入参数说明: @param str @return 输出参数说明: String |
static String |
getLowStr(String str,
Charset charset)
获取字符串的加密结果
20180315 通过了与Apache Commons codec 的计算结果比对 方法说明: getLowStr 输入参数说明: @param str @param charset @return 输出参数说明: String |
public static String getLowStr(InputStream inputStream)
public static String getLowStr(File file)
public static String getLowStr(String str)
public static String getLowStr(byte[] bytes)
Copyright © 2018. All rights reserved.