Modifier and Type | Field and Description |
---|---|
static int |
DIGEST_SIZE
size of a SHA-1 digest in octets
|
Constructor and Description |
---|
SHA1()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears all data, use reset() to start again
|
void |
finalize()
finalizes the digest
|
byte[] |
getDigest()
gets the digest
|
void |
reset()
initializes or resets the hasher for a new session respectively
|
boolean |
selfTest()
runs a selftest
|
String |
toString()
makes a binhex string representation of the current digest
|
void |
update(byte bB)
adds a single byte to the digest
|
void |
update(byte[] data)
adds a byte array to the digest
|
void |
update(String sData)
adds an ASCII string to the digest
|
public static final int DIGEST_SIZE
public SHA1()
public void clear()
public void reset()
public void update(byte bB)
public void update(byte[] data)
public byte[] getDigest()
public boolean selfTest()
Copyright © 2015 Lucee