Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save josephmtinangi/8451646e3aa318d66d0418b4a47e3c7c to your computer and use it in GitHub Desktop.
Save josephmtinangi/8451646e3aa318d66d0418b4a47e3c7c to your computer and use it in GitHub Desktop.
public class App {
public static void main(String[] args) {
String string1 = "string1";
String string2 = "string2";
String checksum = DigestUtils
.sha1Hex(String.valueOf((string1.length() + DigestUtils.md5Hex(string2).length())));
System.out.println("string1 = " + string1);
System.out.println("string2 = " + string2);
System.out.println("checksum = " + checksum);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment