Java Sha1 in PHP
问题 How to get the this Java SHA1 Result in PHP ? // Generating the Signature - Java // import java.security.MessageDigest; // import org.apache.commons.codec.binary.Base64; String userId; String applicationKey; // E.g. "196087a1-e815-4bc4-8984-60d8d8a43f1d"; String applicationSecret; // E.g. "oYdgGRXoxEuJhGDY2KQ/HQ=="; long sequence; // fetch and increment last used sequence String toSign = userId + applicationKey + sequence + applicationSecret; MessageDigest messageDigest = MessageDigest