in reply to cloning Sun's crypt
I think you are confused (or you didnt put your question well).
The whole point of the crypt(a,b) function (or at least
every version i have seen of it) is that it gives encrypted
output for a given input and salt. There is no known non-brute-force
way to computationally get plain text back out of an encrypted string (to
the best of my knowledge).