public final class UrlDigest
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
sha256Hex(java.io.File file) |
static java.lang.String |
sha256Hex(java.lang.String value) |
public static java.lang.String sha256Hex(java.lang.String value)
value - the string to hash, encoded as UTF-8.value.public static java.lang.String sha256Hex(java.io.File file)
throws java.io.IOException
file - the file whose content to hash.file's content.java.io.IOException - if file cannot be read.