widerules / quranquiz

Automatically exported from code.google.com/p/quranquiz
0 stars 0 forks source link

Wrong MD5 Calculations #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new profile
2. MD5 hashing for UID does not match md5sum command

The same function is used to verify anon posted data, will always cause failures

Original issue reported on code.google.com by tarekeldeeb on 13 Feb 2013 at 2:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
To properly check against linux md5sum, the command should be:
echo -n "id" | md5sum

The "-n" means NO NEW LINE, which caused the mismatching problem

Original comment by tarekeldeeb on 21 Feb 2013 at 9:45