krishan sethi
krishan sethi

Reputation: 43

Hash function programming

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??

Upvotes: 0

Views: 194

Answers (1)

gukoff
gukoff

Reputation: 2240

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

Upvotes: 1

Related Questions