Hashes are intentionally one-way.  You can't get back to the original
source other than doing a brute-force search of source strings until
you find one that matches the hash.  Obviously that's really time
intensive, especially if the source string is of arbitrary length.
That site you link to simply has a database of known strings and their
MD5 hashes and will do that brute-force search for you.  So unless you
have a common string, chances are slim it'll help.

That said, if PHP was using an MD5, then it wasn't decrypting it
either, only using it for comparisons.  So you should be able to
implement the same functionality in CF, despite the fact that you
don't know what the source data is (because PHP doesn't either).

cheers,
barneyb

On Sat, Apr 18, 2009 at 10:01 AM, Chad Gray <[email protected]> wrote:
>
> Hello,
>
> I need to decrypt a hash.  Can I do this in CF?
>
> I am trying to get a PHP application that stores some information as an MD5 
> hash to work with a CF application.  So want to decrypt it and use it in my 
> CF application.
>
> This web site can decrypt it, but the CF decrypt() function needs a key.  How 
> do I figure out the key?
>
> http://tools.benramsey.com/md5/
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321786
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to