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
form submit at godaddy?
Trying to test form submission at GoDaddy and it does not seem to work. Here's the page...
h
Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi
pspell
using pspell, is it possible to get words that would be best in the current phrase?
For examp
form variables from database help.
Hi all,
I would like to have a form that gives you options based on the results of an mysql q
puting for loop in 1 value
hi ,
how do i put this code in 1 value:
Code: <?php
for ($i=1; $i<=5; $i
random generation
hi
i need help with generating this
numbers from 1-12
i want to generate in ran
generate seo frienly url from a text like wordpress
Convert: "åäö" to "aao", "space" to "-", "!?&q
SuperCali PHP Event Calendar
does anyone have any experience with the SuperCali PHP Event Calendar? I could use some assistance
Oracle Connectivity
Hi Every One,
Can we access SAP from oracle database.If it possible then please spec
mysq_num_rows
Hi,
I want to use:
Code: if(mysql_num_rows($ergebnis2)==2)
how can the value 2, be