public class DESSHA1 extends Object implements Serializable
| Constructor and Description |
|---|
DESSHA1()
Creates a new
MessageDigest instance. |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHex(byte[] data)
This utility method is passed an array of bytes.
|
String |
digest(String identifier,
String key)
used to hash passwords and other key data to fireSend over the wire,
to prevent plaintext transmit.
|
public DESSHA1()
throws InstantiationException
MessageDigest instance.InstantiationException - an exceptionpublic String digest(String identifier, String key)
identifier - prefix, such as the SessionIDkey - passkey, such as password or handshakeString with the hash in hex string formpublic static String bytesToHex(byte[] data)
digest(). Data is returned in
the format specified by the Jabber protocol.data - some bytesCopyright © 2018. All rights reserved.