Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2004, 10:13 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default MD5() and encryption

Hi
    Php will encrypt anything using md5() function , but how do we decrypt the encrypted value??

Regards,

Praveen.

 
Old May 18th, 2004, 12:27 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You cannot decrypt it.. its a one way encryption algorithm.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old May 20th, 2004, 05:06 AM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by spraveens
 Hi
    Php will encrypt anything using md5() function , but how do we decrypt the encrypted value??

Regards,

Praveen.

If you want to decrypt a value, you can do it with mcrypt functions. See manual for more information: http://www.php.net/manual/en/ref.mcrypt.php

md5 is an one-way-encryption (hash function) and not usable for encryption/decryption.

ciao alex...





Similar Threads
Thread Thread Starter Forum Replies Last Post
md5 code !!!!! angelboy C# 2005 1 March 7th, 2007 03:25 AM
md5() in php pritz PHP How-To 1 May 17th, 2006 05:38 PM
md5() safe??? foddie PHP How-To 0 December 30th, 2005 10:25 PM
Md5 encryption rahuljain_w .NET Web Services 2 September 30th, 2005 05:03 AM
md5() question abollino BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 December 3rd, 2003 02:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.