public class HashUtils extends IOUtils
| 限定符和类型 | 类和说明 |
|---|---|
class |
HashUtils.HASHTYPE |
| 构造器和说明 |
|---|
HashUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
byte2HexString(byte[] bytes)
将字节数组转成16进制字符串
|
static java.lang.String |
digestFile(java.io.File originalFile,
java.lang.String hashType)
获取文件的 hash字符串
|
static java.lang.String |
digestString(java.lang.String originalString,
java.lang.String hashType)
获取字符串的 hash字符串
|
buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, close, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, contentEquals, contentEquals, contentEqualsIgnoreEOL, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, lineIterator, lineIterator, lineIterator, read, read, read, read, read, readFully, readFully, readFully, readFully, readFully, readFully, readLines, readLines, readLines, readLines, skip, skip, skip, skipFully, skipFully, skipFully, toBufferedInputStream, toBufferedInputStream, toBufferedReader, toBufferedReader, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toCharArray, toCharArray, toCharArray, toCharArray, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeChunked, writeChunked, writeLines, writeLines, writeLines, writeLinespublic static java.lang.String digestString(java.lang.String originalString,
java.lang.String hashType)
originalString - 原始字符串hashType - 包括 MD2,MD5,SHA-1,SHA-224,SHA-256,SHA-384,SHA-512public static java.lang.String byte2HexString(byte[] bytes)
bytes - 字节数组public static java.lang.String digestFile(java.io.File originalFile,
java.lang.String hashType)
originalFile - 原始文件对象 FilehashType - 包括 MD2,MD5,SHA-1,SHA-224,SHA-256,SHA-384,SHA-512Copyright © 2018. All Rights Reserved.