ylliX - Online Advertising Network

Digital Signature of Hash (HMACSHA256) in Java using SHA256 algorithm & Pkcs1 RSA signature padding didn’t match with dot net implementation

I am trying to create digital signature of the hash (created using HMACSHA256) in Java using SHA256 algorithm & Pkcs1 RSA signature padding but it is not producing the same signature as implemented in .net by vendor. My Java code : private String hmacSha256(String data, String key) throws Exception { Mac mac = Mac.getInstance(“HmacSHA256”); SecretKeySpec […]