public class Hash
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static char[] |
HEXCHARS |
Constructor and Description |
---|
Hash() |
Modifier and Type | Method and Description |
---|---|
private static java.util.Set |
getCryptoImpls(java.lang.String serviceType)
Provides a list of algorithms for the specified service (which, for
our purposes, is "MessageDigest".
|
static void |
nailMain(NGContext context)
Hashes client stdin, displays hash result to client stdout.
|
private static java.util.Set getCryptoImpls(java.lang.String serviceType)
serviceType
- The name of the service we're looking for. It's "MessageDigest"public static void nailMain(NGContext context) throws java.security.NoSuchAlgorithmException, java.io.IOException
java.security.NoSuchAlgorithmException
java.io.IOException