| java.lang.Object com.martiansoftware.nailgun.examples.Hash
Hash | public class Hash (Code) | | Hashes the client's stdin to the client's stdout in the form of
a hexadecimal string. Command line requires one parameter: either the name
of the algorithm to use (e.g., "MD5"), or "?" to request a list of
available algorithms.
author: Marty Lamb |
Method Summary | |
public static void | nailMain(NGContext context) Hashes client stdin, displays hash result to client stdout.
Requires one command line parameter, either the name of the hash
algorithm to use (e.g., "MD5") or "?" to request a list of
available algorithms. |
nailMain | public static void nailMain(NGContext context) throws java.security.NoSuchAlgorithmException, java.io.IOException(Code) | | Hashes client stdin, displays hash result to client stdout.
Requires one command line parameter, either the name of the hash
algorithm to use (e.g., "MD5") or "?" to request a list of
available algorithms. Any exceptions become the problem of the user.
|
|
|