Because I only know PHP language, I can’t understand a Java method, and I don’t know how to implement it with PHP. Could you please give me some advice:
java source code is as follows:
MessageDigest md5 = MessageDigest.getInstance("MD5");
BASE64Encoder base64en = new BASE64Encoder();
// 加密后的字符串
String newstr = base64en.encode(md5.digest(str.getBytes("utf-8")));
How to implement the above method using PHP?