谁在说PHP垃圾我跟谁看看以下代码谁牛B?
程序员文章站
2022-06-14 20:26:29
...
Java代码
public static String getMD5(String orgin, String charset) { if (charset == null) charset = "utf-8"; String result = null; try { MessageDigest md = MessageDigest.getInstance("MD5"); result = byte2hex(md.digest(orgin.getBytes(charset))); } catch (Exception e) { throw new java.lang.RuntimeException("sign error !", e); } return result;}private static String byte2hex(byte[] b){ StringBuffer hs = new StringBuffer(); String stmp = ""; for (int n = 0; nPHP代码
$reSign = base64_encode(md5($data.$secret))
上一篇: MSSQL表分区的创建详细讲解过程
下一篇: MySQL数据库在主流操作系统下的同步