A simple Java class that implements MD5

zhaozj2021-02-16  59

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: *

description: *

Copyright: Copyright (c) 2003 * < P> Company: * @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

转载请注明原文地址:https://www.9cbs.com/read-18308.html

New Post(0)