I am trying to generate MD5 checksum value using java for a string "TREFFLAGDATAC000000EN", but for the same string the IBM InfoSphere DataStage is generating a differnt MD5 checksum value.
Can anyone please direct me on how to generate the same MD5 checksum value given by data stage?
md5 generated by java code: 4659dff22b357cd9cc9fe0979603d1ab md5 generated by data stage: fd607ac2a5d19980795c584dff24b899
below is my java code
public static void main(String[] args) throws UnsupportedEncodingException{
String value = "TREFFLAGDATAC000000EN";
String hashCode = DigestUtils.md5Hex(value.getBytes("UTF-8"));
System.out.println(hashCode);
}