ted_chou12 Posted January 7, 2007 Share Posted January 7, 2007 are there any function that can be decrypt after encrypt?Ted Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/ Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 I found this awhile back. This guy is pretty cool about allowing use of his stuff. If you plan to sue this for commercial use, contact him. http://www.tonymarston.net/php-mysql/encryption.html#2004-08-27 Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154607 Share on other sites More sharing options...
Jessica Posted January 7, 2007 Share Posted January 7, 2007 *rant*Ted, do you ever look in the php manual before asking a question? Seriously? Ever?And if PHP freaks is too crowded for you, don't post here. If it isn't, the link in your signature should go. It's okay to advertise sites, but if you're advertising a competing site and you're always posting here, that doesn't say much for the other site. Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154610 Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 jesirose i must say that in the php manual there is an encryption function as well as md5, but they do not allow decryption as one would desire for such things as session variables, cookies, etc..as far as your rant on adverts, shame on you ted :-p Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154616 Share on other sites More sharing options...
Jessica Posted January 7, 2007 Share Posted January 7, 2007 magic: he didn't specify anything abut sessions, cookies, etc. He asked a grammatically puzzling question about encryption and decryption. Whenever Ted posts something it is often vague, or an odd approach to a simple problem. I have a hard time thinking he's doing something reasonable here. *shrug* I could be wrong, but the last few times I saw a Ted question, the answer was in the manual. Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154625 Share on other sites More sharing options...
genericnumber1 Posted January 7, 2007 Share Posted January 7, 2007 AFAIK there isn't a non-third party 2 way encryption with php. magic linked an apparently good third party 2 way encryption but remember... while a two way encryption may discourage "Joe Q AverageUser" it wont discourage people who really want the information."There are two types of encryption: one that will prevent your sister from reading your diary and one that will prevent your government." ~Bruce SchneierI'd also like to quote someone else... "[url=http://www.google.com/]STFW[/url]" ~A Rude PersonI don't like to be mean but a google search for "Reversible php encryption" came up with a few results including the one magic linked. Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154639 Share on other sites More sharing options...
ted_chou12 Posted January 7, 2007 Author Share Posted January 7, 2007 Fine, i will make it more obvious then, how do you make a string of text ununderstandable by human, and then reverse it back so that human can understand again using php of course.Ted Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154640 Share on other sites More sharing options...
ted_chou12 Posted January 7, 2007 Author Share Posted January 7, 2007 magic, that site was cool, but i dont understand it very much...um...genericnumber1, both dont suit the standards... Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154641 Share on other sites More sharing options...
genericnumber1 Posted January 7, 2007 Share Posted January 7, 2007 "standards".. if you're looking for some block ciphers built into php I don't think your search will be fruitful..Why do you need a reversible encryption? If it's that sensitive it should be in md5.... Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154645 Share on other sites More sharing options...
fert Posted January 7, 2007 Share Posted January 7, 2007 XOR Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154646 Share on other sites More sharing options...
Jessica Posted January 7, 2007 Share Posted January 7, 2007 Ted, I know what encryption means. Sometimes the step isn't the right one for the goal. Maybe if you explain more about WHAT you are trying to encrypt and WHY, I can provide a better answer.Do some google searching for PHP encrypt decrypt. I found several resources.http://devzone.zend.com/node/view/id/1265http://www.tonymarston.net/php-mysql/encryption.htmlThat's what you asked for! An encryption method that can be decrypted. Magic linked one, and you said it was too confusing. Encryption is a complex topic, so you'll probably have to think a little harder to understand it. Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154647 Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 Ted what he has created on there is a PHP class of his own. He has then if you read that page, explained his code, although i never took the time to fully understand it. Basically what you do is copy his fully functional code for the class, create a file named whaever u want, i went with like Encryption.class.php, and then you include that file on the pages you want to use it with. when going to encrypt you simply create a [code]$crypter = new Encryption();$crypter->encrypt($key, $myString, $length);[/code]the key is whatever you want it to be, just remember it for the decryptionmyString is obviouslength is the length you want to encrypt it tosay you have a 3 char string that u want to be 15 char encrypted, set length to 15it's pretty simplepretty sure decryption is just [code]$crypter->encrypt($key, $myString);[/code] Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154652 Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 Ted if this has worked for you, click on topic solved at the bottom left of the window. Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154666 Share on other sites More sharing options...
rab Posted January 7, 2007 Share Posted January 7, 2007 rot13 is always available :P Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154668 Share on other sites More sharing options...
printf Posted January 7, 2007 Share Posted January 7, 2007 [url=http://us3.php.net/manual/en/ref.mcrypt.php]mcrypt[/url]printf Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154682 Share on other sites More sharing options...
ted_chou12 Posted January 7, 2007 Author Share Posted January 7, 2007 but may i ask what is the code i have to include in this:"Encryption.class.php" page? there are a lot of things on there, i am not sure which one to take, any suggestions please? thanks rab and printf Link to comment https://forums.phpfreaks.com/topic/33161-solved-are-there-any-function-that-can-be-decrypt-after-encrypt/#findComment-154704 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.