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
Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out
Could Someone Please Debug This?
I was wondering if someone could debug this script for me. I realize it's not the tidest script (and
xml
<?php
echo "<h1>XML Articles</h1>";
$home
Mysql query, two times?
Hello to all,
I'm new to php coding and i like it alot. I need help with some noob stuff.
Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t
Inserting multiple records from single form
I've found a number of threads that deal with this issue, but I'm new to php and coding language so
Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite
PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see
Custom array sort? asc then desc
Any ideas how I could sort this array? I've been trying for a while. Maybe with usort, but I have no
cURL proxy
Okay here is the thing... i know how to add proxys
Code: curl_setopt($ch, CURLOPT_PROXYTYPE,