Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

MD5 java

    try {
        byte[] bytesOfMessage = YOURSTRING.getBytes("UTF-8");
        MessageDigest md = MessageDigest.getInstance("MD5");
        byte[] bytesOfDigest = md.digest(bytesOfMessage);
        String hash = DatatypeConverter.printHexBinary(bytesOfDigest).toLowerCase();
        System.out.println(hash); 
        } catch(Exception e) {
          System.out.println(e);
        }
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
9+1 =