Java produce md5 and sha1
import org.apache.commons.codec.digest.DigestUtils;
public class Test {
public static void main(String[] args) {
System.out.println(DigestUtils.md5Hex("data"));
System.out.println(DigestUtils.shaHex("data"));
}
}
public class Test {
public static void main(String[] args) {
System.out.println(DigestUtils.md5Hex("data"));
System.out.println(DigestUtils.shaHex("data"));
}
}
No comments :
Post a Comment