Php Encryption Algorithms -- Help Needed!!!
Posted: Mon May 07, 2007 7:30 pm
Hi all,
In my application, I'm trying to encrypt a certain string and send it back to the user by email. Currently i'm using SHA(1). I tried SHA and MD5 also. The problem with these is they give a really long (40 characters) encrypted string. The users are freaking out seeing such a big string. To make things worst, i lao have to append thier company name to it which make it even bigger. So i need an alorithm that can generate a smaller string like 6, 8 or evejn 10 is fine.
I browsed around and forund somethng called Crypt(). But this returns a binary output and hence sometimes it has special characters in it. Other than this fact this works very well.
Can anyone help me with an algorithm that returns a small string and is not binary(i do not want any special characters in it.) Numbers and alphabets only.
Any help is appreciated. I have been searching a lot. Thanks.
-- Vamsi.
In my application, I'm trying to encrypt a certain string and send it back to the user by email. Currently i'm using SHA(1). I tried SHA and MD5 also. The problem with these is they give a really long (40 characters) encrypted string. The users are freaking out seeing such a big string. To make things worst, i lao have to append thier company name to it which make it even bigger. So i need an alorithm that can generate a smaller string like 6, 8 or evejn 10 is fine.
I browsed around and forund somethng called Crypt(). But this returns a binary output and hence sometimes it has special characters in it. Other than this fact this works very well.
Can anyone help me with an algorithm that returns a small string and is not binary(i do not want any special characters in it.) Numbers and alphabets only.
Any help is appreciated. I have been searching a lot. Thanks.
-- Vamsi.