Thanks, for the idea. encrypt_hex is working fine.
Can you give me some more idea about blowfish and DES.
As i have codes for that they are taking only 8bit string.
please tell which encryption scheme is good for keeping a encrypted password in a webapplication