Class DigestUtil

java.lang.Object
se.datadosen.util.DigestUtil

public class DigestUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    DigestUtil()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String md5​(java.io.File f)  
    static java.lang.String md5​(java.io.InputStream is)  
    static java.lang.String md5​(java.lang.String s)
    From http://snippets.dzone.com/posts/show/3686
    static java.lang.String md5​(java.security.MessageDigest m)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • md5

      public static java.lang.String md5​(java.lang.String s)
      From http://snippets.dzone.com/posts/show/3686
    • md5

      public static java.lang.String md5​(java.io.File f) throws java.io.IOException
      Throws:
      java.io.IOException
    • md5

      public static java.lang.String md5​(java.io.InputStream is) throws java.io.IOException
      Throws:
      java.io.IOException
    • md5

      public static java.lang.String md5​(java.security.MessageDigest m)