Vincent Tsao's Library tagged → View Popular
18 Dec 09
using Java to get a file's md5 checksum? - Stack Overflow
-
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();
Selected Tags
Related Tags
Top Contributors
Groups interested in android
Related Lists on Diigo
-
Google android
Items: 1 | Visits: 44
Created by: greentlr
-
WebKit and the Future of the Open Web
WebKit is an advanced HTML-...
Items: 20 | Visits: 104
Created by: Gary Edwards
-
Google Phone
Items: 7 | Visits: 107
Created by: Toshiro Shimura
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
