■PHP hash_hmac('md5', $str, 'key'); ■Python import hmac from hashlib import sha1 from hashlib import md5 hmac.new("key", "value", md5).hexdigest() hmac.new("key", "value", sha1).hexdigest() ■Android public class HmacMD5 { private static final String ALGORISM = “HmacMD5”; private static final String S = “key”; public static String get(String str) { SecretKeySpec secretKeySpec = new SecretKeySpec(S.