crypt doesn't encrypt, it hashes. You can't decrypt it.
If $x is a password and you want to check if the user submitted the right password $p, just repeat the process and check if the previously saved output for $x matches the output for $x.
By the way, using a constant salt ("ar") is a bug. For that matter, the use of crypt should probably be considered a bug.
In reply to Re: Simple decrypt ?
by ikegami
in thread Simple decrypt ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |