Nolongerused3921 Posted March 6, 2006 Share Posted March 6, 2006 I'm currently trying to write a function that will work on all systems (Win/*nix) without any extra PHP modules, that will allow me to both encrypt and decrypt a string.Now this obviously throws Mcrypt and Md5 out of the running... So what do I use? Are there ANY PHP functions that can encrypt and decrypt, that don't require any extra libraries?I'd prefer not to write my own encryption class but I will if nothing else exists.Thanks Quote Link to comment Share on other sites More sharing options...
wickning1 Posted March 6, 2006 Share Posted March 6, 2006 If you're using a MySQL database, you can use MySQL's encryption utilities, that's pretty well cross-platform and easy. Just SELECT AES_ENCRYPT('mystring', 'mykey');If you do it in PHP, you need the mcrypt extension.. pretty tough to get around that, but you can abstract it in your application so that it's easier to port. Quote Link to comment 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.