in reply to gettin back crypted password

As others have mentioned here, the right way to use crypt is to compare the "crypt" of the user entered password with the one stored in the application.