Class 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 Detail

      • SHA

        public SHA()
        Deprecated.
    • 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 MessageDigest instead.

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