public interface DigestEngine
Modifier and Type | Interface and Description |
---|---|
static class |
DigestEngine.JavaDigestEngine |
Modifier and Type | Method and Description |
---|---|
byte[] |
digest(byte[] input)
Returns byte-hash of input byte array.
|
byte[] |
digest(java.io.File file)
Returns digest of a file.
|
default byte[] |
digest(java.lang.String input)
Returns byte-hash of input string.
|
default java.lang.String |
digestString(byte[] byteArray)
Returns string hash of input byte array.
|
default java.lang.String |
digestString(java.io.File file) |
default java.lang.String |
digestString(java.lang.String input)
Returns string hash of input string.
|
static DigestEngine |
md2()
Creates new MD2 digest.
|
static DigestEngine |
md5()
Creates new MD5 digest.
|
static DigestEngine |
sha1()
Creates new SHA-1 digest.
|
static DigestEngine |
sha256()
Creates new SHA-256 digest.
|
static DigestEngine |
sha384()
Creates new SHA-384 digest.
|
static DigestEngine |
sha512()
Creates new SHA-512 digest.
|
static DigestEngine md2()
static DigestEngine md5()
static DigestEngine sha1()
static DigestEngine sha256()
static DigestEngine sha384()
static DigestEngine sha512()
byte[] digest(byte[] input)
default byte[] digest(java.lang.String input)
byte[] digest(java.io.File file) throws java.io.IOException
java.io.IOException
default java.lang.String digestString(byte[] byteArray)
default java.lang.String digestString(java.lang.String input)
default java.lang.String digestString(java.io.File file) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team