Implemented password encryption.