`
文章列表
import java.security.*; import java.util.logging.Level; import java.util.logging.Logger; public class md5{ public String md5(String str) { String s=str; if(s==null){ return ""; }else{ String value = null; MessageDigest md5 = null; try { md5 = MessageD ...
package com.chuanxi.training.util; import java.security.*; public class Encryption { //用来对密码进行MD5加密 public static String md5(String plainText) { String str=""; try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(plainText.getBytes() ...
Global site tag (gtag.js) - Google Analytics