October 23rd, 2000, 04:40 PM
I have been failing miserably at making a good pattern match of an MD5....
Any help for a burnt out programmer?
October 23rd, 2000, 10:10 PM
What exactly is it you are trying to do? What are you trying to achieve?
An example would help.
October 24th, 2000, 05:04 AM
Why use a pattern match in an MD5 hash string?..
doens't the hash supposed to be completely
October 24th, 2000, 09:06 AM
OKay, I guess I did not explain myself....
I need to have a HTTP-GET request pass an md5 in to a file. I need to make sure that it is an actuall md5... I don't care if it is fake, but it needs to be an md5.
The reason is this, a directory is going to be made for the user based on this string. So they can upload files... I don't want them to be able to use for example "../../../../usr/local/" in this string.
October 24th, 2000, 09:59 AM
MD5 is for password use, aint it ?..
maybe i'm mistaking..
on way encryption of a password or such
like the PASSWORD function in mysql
October 24th, 2000, 10:47 AM
md5 sums are generic. People use them for all sorts of things... I md5 my sessions, so that they are all in the same format.
Other people will get the md5 of a binary file for security reasons... if the file is changed, then there is a problem.
It is just a mathematical sum. Not encryption by any excepted means, because you can't decrypt it at all...
The reason I want an md5, is that it is sufficient for my clients needs.
So does anyone know how to pattern match one in PHP? or is this going to be a pure discussion?
Sorry to sound bitter, but I do need to get this site up.
October 24th, 2000, 11:22 AM
That was what I needed... I just have a hard time figuring these stupid thigns out.
All it does is make sure that $ID is 32 chars of any of these "0123456789abcedf"
October 24th, 2000, 01:04 PM
aah, why didn't u say so
that would be much easier,
u got me thinking al wrong
well, glad u solved it... still don't
really get it why u use md5, but that