public class SHA256 extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
calculate()
计算 SHA256
|
static byte[] |
SHA256(byte[] bytes)
计算 SHA256
|
static byte[] |
SHA256(InputStream stream)
计算 SHA256
|
static byte[] |
SHA256(String str)
计算 SHA256
|
static String |
SHA256AsFile(File file)
计算 SHA256
|
static String |
SHA256AsFilePath(String file)
计算 SHA256
|
static String |
SHA256AsString(byte[] bytes)
计算 SHA256
|
static String |
SHA256AsString(InputStream stream)
计算 SHA256
|
static String |
SHA256AsString(String str)
计算 SHA256
|
public SHA256(String sha256)
public static byte[] SHA256(byte[] bytes)
bytes - 字节数组public static byte[] SHA256(String str)
str - 字符串public static byte[] SHA256(InputStream stream) throws MsToolsException
stream - 输入流MsToolsException - 异常public static String SHA256AsString(byte[] bytes)
bytes - 字节数组public static String SHA256AsString(InputStream stream) throws MsToolsException
stream - 输入流MsToolsException - 异常public static String SHA256AsFilePath(String file) throws MsToolsException
file - 文件MsToolsException - 异常public static String SHA256AsFile(File file) throws MsToolsException
file - 文件MsToolsException - 异常public String calculate()
Copyright © 2024. All rights reserved.