Hi,
The below code is in Java. I want the same in c# to use in payment gateway integration
Please help me
publicstaticfinalchar[] HEX ={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};publicstaticbyte[] md5Of(List<String> list){try{StringBuffer rawString =newStringBuffer();for(String elem : list){ rawString.append(elem);}byte[] p = rawString.toString().getBytes("ISO-8859-1");MessageDigest md =MessageDigest.getInstance("MD5"); md.reset(); md.update(p);byte[] digest = md.digest();return digest;}catch(Exception e){ e.printStackTrace();}returnnull;}publicstaticString hexdigit(byte[] input){char[] b16 =newchar[input.length *2];int i =0;for(byte c : input){int low = c &0xF;int high =(c &0xF0)>>4; b16[(i++)]= HEX[high]; b16[(i++)]= HEX[low];}returnnewString(b16);}