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

    Modifier and Type
    Method
    Description
    static String
    hash(byte[] p_buf)
    Deprecated.
    Hashes the given String using the SHA-1 algorithm.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SHA

      public SHA()
      Deprecated.
  • Method Details

    • 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 MessageDigest instead.

      Parameters:
      p_buf - The data to be hashed.
      Returns:
      The hashed string.