four4swords Posted May 29, 2008 Share Posted May 29, 2008 hi, Can i decrypt TEA or Rijndael without Mcrypt? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/ Share on other sites More sharing options...
Daniel0 Posted May 29, 2008 Share Posted May 29, 2008 You could port the code in the extension which is written in C to native PHP. Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-552457 Share on other sites More sharing options...
four4swords Posted May 30, 2008 Author Share Posted May 30, 2008 Is this easy to do? Or is it already done? .. Or.. (deep breath).. do i have to do it? lol Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553238 Share on other sites More sharing options...
mushroom Posted May 30, 2008 Share Posted May 30, 2008 I most cases you can't "decrypt". What is normally done is to encrypt the "word" with the same algorithm and compare it to the stored encrypted "word". Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553270 Share on other sites More sharing options...
Daniel0 Posted May 30, 2008 Share Posted May 30, 2008 I most cases you can't "decrypt". You can always decrypt it. We're talking about the encryption algorithms supported by mcrypt, not hashing algorithms like md5, sha1, crc32, etc. Those two things are for completely different purposes. If you weren't able to decrypt encrypted things, then how do you think things like PGP, GPG, TrueCrypt, BitLocker, FileVault, EFS, SSL etc. work? Is this easy to do? Or is it already done? .. Or.. (deep breath).. do i have to do it? lol I doubt it'd be easy to do. You could try to search for classes which does this. You could take a look at this one which would take care of TEA, but PEAR doesn't have a class for Rijndael. Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553288 Share on other sites More sharing options...
four4swords Posted May 30, 2008 Author Share Posted May 30, 2008 ok thanks! I'll look into it! ... Err.. lol .. Ok.. right.. I'm suppose to put this Xtea.php file in the same file as the PEAR.php so the "require_once 'PEAR.php';" line of code would work .. right? If so.. where do i put this file? thanks Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553309 Share on other sites More sharing options...
Daniel0 Posted May 30, 2008 Share Posted May 30, 2008 You might want to read this: http://pear.php.net/manual/en/installation.php Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553317 Share on other sites More sharing options...
four4swords Posted May 30, 2008 Author Share Posted May 30, 2008 ok.. well.. it just talks about the installation of PEAR.. I've got Xampp on my computer.. and i assume that it comes with PEAR already installed on it.. .. or at least that's what the Xampp site says lol so.. Do i need to put my xtea.php file in a certain place? or since it's just calling to PEAR.php.. i can put it anywhere as it might be a univerally known file my php? lol Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553320 Share on other sites More sharing options...
Daniel0 Posted May 30, 2008 Share Posted May 30, 2008 Logically you'd have them like this: /path/to/pear/PEAR.php /path/to/pear/Crypt/Xtea.php That's the standard directory structure of PEAR classes. If PEAR is correctly installed, then you can just run pear install Crypt_Xtea from a console and then do require 'Crypt/Xtea.php; in your source file. Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-553337 Share on other sites More sharing options...
four4swords Posted May 31, 2008 Author Share Posted May 31, 2008 Ahh! I see! lol THANKS!! ;D It works now! Thanks a lot! Quote Link to comment https://forums.phpfreaks.com/topic/107760-solved-possible-to-decrypt-without-mcrypt/#findComment-554037 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.