Package de.uplanet.security
Class SHA
- java.lang.Object
-
- de.uplanet.security.SHA
-
@Deprecated @Scriptable public final class SHA extends Object
Deprecated.The SHA-1 hash function is no longer considered to be secure. It should not be used for cryptographic purposes.
-
-
Constructor Summary
Constructors Constructor Description SHA()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
hash(byte[] p_buf)
Deprecated.Hashes the given String using the SHA-1 algorithm.
-
-
-
Method Detail
-
hash
public static String hash(byte[] p_buf)
Deprecated.Hashes the given String using the SHA-1 algorithm.Note that this method should only be used in cases where the amount of data to be hashed is limited and small. To hash data of arbitrary size use a
instead.MessageDigest
- Parameters:
p_buf
- The data to be hashed.- Returns:
- The hashed string.
-
-