Package com.sshtools.j2ssh.util
Class Hash
- java.lang.Object
-
- com.sshtools.j2ssh.util.Hash
-
public class Hash extends java.lang.Object- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description Hash(java.lang.String algorithm)Creates a new Hash object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]doFinal()voidputBigInteger(java.math.BigInteger bi)voidputByte(byte b)voidputBytes(byte[] data)voidputInt(int i)voidputString(java.lang.String str)voidreset()static byte[]simple(byte[] data, java.lang.String algorithm)
-
-
-
Method Detail
-
putBigInteger
public void putBigInteger(java.math.BigInteger bi)
- Parameters:
bi-
-
putByte
public void putByte(byte b)
- Parameters:
b-
-
putBytes
public void putBytes(byte[] data)
- Parameters:
data-
-
putInt
public void putInt(int i)
- Parameters:
i-
-
putString
public void putString(java.lang.String str)
- Parameters:
str-
-
reset
public void reset()
-
simple
public static byte[] simple(byte[] data, java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Parameters:
data-algorithm-- Returns:
- Throws:
java.security.NoSuchAlgorithmException
-
doFinal
public byte[] doFinal()
- Returns:
-
-