Subversion Repositories SmartDukaan

Rev

Rev 10124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10124 Rev 10493
Line 242... Line 242...
242
		return paymentOption;
242
		return paymentOption;
243
	}
243
	}
244
 
244
 
245
	public String getSecureHash() throws NoSuchAlgorithmException{
245
	public String getSecureHash() throws NoSuchAlgorithmException{
246
		String pass = ebsSecretKey + "|" + accountId + "|" + amount + "|" + id + "|" + returnUrl + "|" + mode;
246
		String pass = ebsSecretKey + "|" + accountId + "|" + amount + "|" + id + "|" + returnUrl + "|" + mode;
-
 
247
		log.info("pass:" + pass);
247
		MessageDigest m = MessageDigest.getInstance("MD5");
248
		MessageDigest m = MessageDigest.getInstance("MD5");
248
		byte[] data = pass.getBytes();
249
		byte[] data = pass.getBytes();
249
		m.update(data,0,data.length);
250
		m.update(data,0,data.length);
250
		BigInteger i = new BigInteger(1,m.digest());
251
		BigInteger i = new BigInteger(1,m.digest());
251
		String secureHash = String.format("%1$032X", i);
252
		String secureHash = String.format("%1$032X", i);