Guest User

Untitled

a guest
Dec 11th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.             while( (read = is.read(buffer)) > 0) {
  2.                 digest.update(buffer, 0, read);
  3.             }      
  4.             byte[] md5sum = digest.digest();
  5.             BigInteger bigInt = new BigInteger(1, md5sum);
  6.             String output = bigInt.toString(16);
  7.             if(output.length() != 32)
  8.                 output = "0" + output;
  9.             System.out.println("MD5: " + output);
  10.            
  11.             return output;
Add Comment
Please, Sign In to add comment