fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.security.MessageDigest;
  7. import java.math.BigInteger;
  8.  
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. String message = "teste1234";
  14. byte[] hash = MessageDigest.getInstance("MD5").digest(message.getBytes("UTF-8"));
  15. System.out.println("MD5: " + new BigInteger(1, hash).toString(16));
  16. }
  17. }
Success #stdin #stdout 0.15s 320768KB
stdin
Standard input is empty
stdout
MD5: 9151a42659cfc08aff86820f973f640