tags:

views:

100

answers:

3

Hi

What is the decrypt function for crypt function in PHP

Thanks Bharanikumar

+2  A: 

There is no decrypt function, since crypt() uses a one-way algorithm.

  • PHP Manual
atif089
+2  A: 

You cannot decrypt the crypt function but if you need original string back, use mcrypt_encrypt and mcrypt_decrypt, and choose key based encryption like MCRYPT_RIJNDAEL_256

S.Mark