Skip to main content

  • java.security.DigestInputStream
  • MessageDigest md = MessageDigest.getInstance("MD5");
    InputStream is = new FileInputStream("file.txt");
    try {
     
    is = new DigestInputStream(is, md);
     
    // read stream to EOF as normal...
    }
    finally {
     
    is.close();
    }
    byte[] digest = md.digest();
1 - 4 of 4
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo
Move to top