Klasse SHA

java.lang.Object
de.uplanet.security.SHA

@Deprecated @Scriptable public final class SHA extends Object
Veraltet.
The SHA-1 hash function is no longer considered to be secure. It should not be used for cryptographic purposes.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    SHA()
    Veraltet.
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static String
    hash(byte[] p_buf)
    Veraltet.
    Hashes the given String using the SHA-1 algorithm.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • SHA

      public SHA()
      Veraltet.
  • Methodendetails

    • hash

      public static String hash(byte[] p_buf)
      Veraltet.
      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.

      Parameter:
      p_buf - The data to be hashed.
      Gibt zurück:
      The hashed string.