Search code examples
phpcrypt

Decrypt PHP crypt() function without salt


I have a small problem. In fact, I have a string crypted with the PHP function crypt(), with only one parameter (without the salt parameter). I would like to know if it is possible to decrypt the password if it was crypted that way?

Thank you in advance!


Solution

  • No, this is impossible, because simply crypt() is a One-way string hashing.

    You can, however, use brute force but it will be too bad if the password is lengthly...