johnsmith153 Posted October 23, 2008 Share Posted October 23, 2008 I need to encrypt a long text string, then url encode and send in an url. I am finding most encryption methods wont convert back exactly due to the length of my string. What I want is something like base64 encode, but where I can specify a 1 letter key to make not so obvious to convert. I have use mcrypt which is great, but even a 1 letter key on MCRYPT_DES doesnt work. The string doesnt need to be too secure, but base64 on own is no good. Base64 + 1 key encryption please. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/ Share on other sites More sharing options...
CroNiX Posted October 23, 2008 Share Posted October 23, 2008 can you give an example of the string? Why does it have to be sent through the URL? Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/#findComment-672511 Share on other sites More sharing options...
johnsmith153 Posted October 23, 2008 Author Share Posted October 23, 2008 It's a long story to be honest. There is definitely no other way. I suppose I need the most basic of encryption - but obviously one step up from base64. Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/#findComment-672517 Share on other sites More sharing options...
CroNiX Posted October 23, 2008 Share Posted October 23, 2008 example of the string? Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/#findComment-672520 Share on other sites More sharing options...
johnsmith153 Posted October 23, 2008 Author Share Posted October 23, 2008 all letters / numbers, about 150-200 characters Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/#findComment-672521 Share on other sites More sharing options...
CroNiX Posted October 23, 2008 Share Posted October 23, 2008 Are you sending it to another server? Why does it HAVE to be through the URL? Quote Link to comment https://forums.phpfreaks.com/topic/129706-string-encryption-base64-encode-etc/#findComment-672526 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.