You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Generate and compare checksum in OIC

edited Sep 23, 2024 8:16PM in Integration 3 comments

Summary:

We have requirement to compare checksum value received from source application for input file with checksum value generated by OIC. We are using below function to generate checksum in OIC by passing file reference but it seems file reference gives different value each time. Is there any other way we should be following?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


OIC Gen3


Code Snippet (add any code snippets that support your topic, if applicable):

function checksum_sha256(inputStr) {
  var sha256_result = oic.checksum.sha256(inputStr,"sha-256");
  return sha256_result;
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!