Implemented username and password crypto.