public class Sha1Crypto
extends java.lang.Object
Constructor and Description |
---|
Sha1Crypto() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encode(byte[] byteArray)
Encodes the given text with the SHA-1 algorithm.
|
static java.lang.String |
encode(java.lang.String text)
Encodes the given text with the SHA-1 algorithm.
|
public static java.lang.String encode(java.lang.String text) throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
text
- the text to encodejava.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public static java.lang.String encode(byte[] byteArray) throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
byteArray
- the byte array to encodejava.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.