0

I have program for a hash function:

 H(a || b || g || y1 || y2) 

where a,b,g,y1,and y2 are inputs. Can anybody tell me what to do with these inputs if I am using SHA-2 as my hash function? does this mean I have to either concatenate all the inputs, do the OR operation, or something else??

2
  • Are you using hash for security checks or for lookup of some sort? Commented Mar 7, 2013 at 8:54
  • using hash for security check means check the integrity of the message Commented Mar 8, 2013 at 6:40

1 Answer 1

1

You can xor them, if these inputs are numbers, or concatenate them using sentinels, if they are strings.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.