handle crypt() errors
Merge pull request #3 from rlidwka/crypt

handle crypt() errors