Class SHA1


  • public class SHA1
    extends java.lang.Object
    SHA1 abstraction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SHA1 NULL  
    • Constructor Summary

      Constructors 
      Constructor Description
      SHA1​(byte[] bytes)  
      SHA1​(int w0, int w1, int w2, int w3, int w4)  
      SHA1​(java.lang.String str)  
    • Field Detail

      • NULL

        public static final SHA1 NULL
    • Constructor Detail

      • SHA1

        public SHA1​(int w0,
                    int w1,
                    int w2,
                    int w3,
                    int w4)
      • SHA1

        public SHA1​(java.lang.String str)
      • SHA1

        public SHA1​(byte[] bytes)
    • Method Detail

      • getInts

        public int[] getInts()
      • getBytes

        public byte[] getBytes()
      • digest

        public static SHA1 digest​(java.io.InputStream in)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • digest

        public static SHA1 digest​(java.io.File file)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object