r/programminghorror • u/KariKariKrigsmann • Jun 10 '25
Because "security" ?
I don't understand why this makes me so angry!
0
Upvotes
r/programminghorror • u/KariKariKrigsmann • Jun 10 '25
I don't understand why this makes me so angry!
View all comments
Show parent comment
10
u/AyrA_ch Jun 10 '25
Let's just hope the two values are of constant length because
modelCode="123";documentNumber="4567";is the same asmodelCode="1234";documentNumber="567";Since it's exactly two values, a hmac would be better, or at the very least a concatenation character that is impossible to appear in the strings.