A simple Java class that implements MD5
Keywords: MD5 Due to the uniqueness and irreversibility of the message summary, it is not a simple commonly used encryption method, such as you can encrypt the user password in your application with MD5.
Package test; import java.security.MssageDigest; / ** *
Title: p> *
description: p> *
Copyright: Copyright (c) 2003 p> * < P> Company: p> * @Author unascribed * @version 1.0 * / public class stringutil {private final static string [] hexdigits = {"0", "1", "2", "3", "4" , "5", "6", "7", "8", "A", "B", "C", "D", "E", "F"}; / ** * Conversion byte array is 16 binding strings * @Param B byte array * @return 16 credit string * / public static string ByteArrayToHexString (byte [] b) {stringbuffer resultsb = new stringbuffer (); for (int i) = 0; i