md5 is it unique
Posted on
16th Feb 2014 07:03 pm by
admin
I know this is most likely one of many simple questions that can be found semi easily. But I'm pressed for time. I have searched google, php.net, etc. But it only tells me how to make md5 hashes. Ok great that part I knew.
What I am curious of is, if I create a md5 hash and store it as a session a cookie, or an entry in a database for later comparison with something else. If I followed the same exact method of creating the variable for the session, with the same exact data, would it create the same exact hash as before or would it create a new hash that would be diffrent
example
$session_key = md5('Name-of-Product'.'Price'.'Shipping');
$compare_key = md5('Name-of-Product'.'Price'.'Shipping');
for the example above I would initial hash the info for the $session_key
through a series of different actions the user will eventually end up sending the data through the site via some form of variable or another $_POST or $_GET what I am tempting to do is want to make sure that if i take the user provided data that it matches that of the session I created earlier by comparing the 2 hash strings.
No comments posted yet
Your Answer:
Login to answer
271
23
Other forums
include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q
Memory Allocation
Hi folks,
see this ex:
int v=5;
v=v+10;
then what will do the compiler before th
onclick problem
I have <input type="text" name="message">
<a href=page2.
Getting Subdomain Name With PHP?
I want to grab the subdomain name with PHP so I can generate database queries.
for example my
error reporting
hey everyone
I have a production server in which I want error reporting but only on some page
1,000 select boxes with 100 options?!
I have 1 drop down select box with 1,000 options.
In some case, there will be 100+ of the
PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg
TinyMCE / Ajax Postback Problem
Hiya all,
I have a page which loads the TinyMCE editor. On the postback I obviously want to f
Help Import Animoto and Youtube
CAn someone help me urgently want to allow users on my website to import youtube/revver/dailymotion
browse folder only
hi,
is there a way i can browse or get the directory or folder only and not the file?
i just w