Groovy调用MD5加密
import java.security.MessageDigest def today = new Date().format("yyyy-MM-dd") def snstr = ‘a=$a&b=$b&today=$today’ def sn = MessageDigest.getInstance("MD5").digest("$snstr".bytes).encodeHex().toString().toLowerCase()
import java.security.MessageDigest def today = new Date().format("yyyy-MM-dd") def snstr = ‘a=$a&b=$b&today=$today’ def sn = MessageDigest.getInstance("MD5").digest("$snstr".bytes).encodeHex().toString().toLowerCase()