If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

@jswany, Sorry to rain on your parade buddy, but recommending your own crypto scheme is akin to using advice from a 12 year old to build critical public infrastructure. No disrespect; I would say the same thing about anything I came up with myself when it comes to crypto.

note the "could". I agree with you and would not use this to encrypt important data. I personally use it to pass data through the URL which would just be in plain text otherwise, I do this to try and deter people from trying to hack my websites, if it does or doesn't is a different story.

To be honest I'm not sure why I wrote

base64 encoding for added protection

, you're right base64 adds no extra protection it only makes it return "readable" characters. I will remove this line from the script description.

I only work with PHP for fun and as a hobby (it's not my job), I am always willing to learn and therefore I am grateful for your input but if anyone was looking to encrypt important data or sensitive data I hope they would not use this and use something written by professionals or use mcrypt as you suggested. Sorry if I have mislead anyone