Class MD5

  • All Implemented Interfaces:
    Digest

    @Deprecated
    public final class MD5
    extends java.lang.Object
    implements Digest
    Deprecated.
    MD5. Based on the example code in RFC 1321. Optimized (...a little).
    Version:
    $Id: MD5.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] block
      Deprecated.
       
      private long count
      Deprecated.
       
      private static byte[] padding
      Deprecated.
       
      private int state0
      Deprecated.
       
      private int state1
      Deprecated.
       
      private int state2
      Deprecated.
       
      private int state3
      Deprecated.
       
      private int[] x
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      MD5()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void digest​(byte[] dst)
      Deprecated.
       
      void digest​(byte[] dst, int pos)
      Deprecated.
       
      private static void encode​(byte[] dst, int dstoff, int word)
      Deprecated.
       
      private static int FF​(int a, int b, int c, int d, int x, int s, int ac)
      Deprecated.
       
      int getDigestLength()
      Deprecated.
       
      private static int GG​(int a, int b, int c, int d, int x, int s, int ac)
      Deprecated.
       
      private static int HH​(int a, int b, int c, int d, int x, int s, int ac)
      Deprecated.
       
      private static int II​(int a, int b, int c, int d, int x, int s, int ac)
      Deprecated.
       
      void reset()
      Deprecated.
       
      private void transform​(byte[] src, int pos)
      Deprecated.
       
      void update​(byte b)
      Deprecated.
       
      void update​(byte[] b)
      Deprecated.
       
      void update​(byte[] buff, int pos, int len)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • state0

        private int state0
        Deprecated.
      • state1

        private int state1
        Deprecated.
      • state2

        private int state2
        Deprecated.
      • state3

        private int state3
        Deprecated.
      • count

        private long count
        Deprecated.
      • block

        private final byte[] block
        Deprecated.
      • x

        private final int[] x
        Deprecated.
      • padding

        private static final byte[] padding
        Deprecated.
    • Constructor Detail

      • MD5

        public MD5()
        Deprecated.
    • Method Detail

      • FF

        private static final int FF​(int a,
                                    int b,
                                    int c,
                                    int d,
                                    int x,
                                    int s,
                                    int ac)
        Deprecated.
      • GG

        private static final int GG​(int a,
                                    int b,
                                    int c,
                                    int d,
                                    int x,
                                    int s,
                                    int ac)
        Deprecated.
      • HH

        private static final int HH​(int a,
                                    int b,
                                    int c,
                                    int d,
                                    int x,
                                    int s,
                                    int ac)
        Deprecated.
      • II

        private static final int II​(int a,
                                    int b,
                                    int c,
                                    int d,
                                    int x,
                                    int s,
                                    int ac)
        Deprecated.
      • encode

        private static final void encode​(byte[] dst,
                                         int dstoff,
                                         int word)
        Deprecated.
      • transform

        private final void transform​(byte[] src,
                                     int pos)
        Deprecated.
      • reset

        public final void reset()
        Deprecated.
        Specified by:
        reset in interface Digest
      • update

        public final void update​(byte b)
        Deprecated.
        Specified by:
        update in interface Digest
      • update

        public final void update​(byte[] buff,
                                 int pos,
                                 int len)
        Deprecated.
        Specified by:
        update in interface Digest
      • update

        public final void update​(byte[] b)
        Deprecated.
        Specified by:
        update in interface Digest
      • digest

        public final void digest​(byte[] dst,
                                 int pos)
        Deprecated.
        Specified by:
        digest in interface Digest
      • digest

        public final void digest​(byte[] dst)
        Deprecated.
        Specified by:
        digest in interface Digest
      • getDigestLength

        public final int getDigestLength()
        Deprecated.
        Specified by:
        getDigestLength in interface Digest