Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while( (read = is.read(buffer)) > 0) {
- digest.update(buffer, 0, read);
- }
- byte[] md5sum = digest.digest();
- BigInteger bigInt = new BigInteger(1, md5sum);
- String output = bigInt.toString(16);
- if(output.length() != 32)
- output = "0" + output;
- System.out.println("MD5: " + output);
- return output;
Add Comment
Please, Sign In to add comment