How sridhar-sivaraman/hackathon works
Project Summary and Main Components
• This project is a small Node.js application used to simulate an authentication process that “leaks” an encrypted password string on every authentication attempt. The challenge is to decrypt that password and to determine the username as a sorted string ("lexical ordering").
• The main components in the project are:
• The entry point module (src/hackuser.js): It runs the authentication simulation, triggers the leak, calls the decryption/"hackAlgorithmToFindUsername" routine, and prints or processes the username.
• The authentication and encryption modules (src/Auth.js and src/authorizer.js): These likely encapsulate the logic for handling authentication attempts and encryption details.
• Node.js environment and external package management via package.json and build tool configuration via Gruntfile.js (if there is any build/automation requirement).
Analyzing File Structure
• Top-level Files:
• .gitignore, Gruntfile.js, README.md, package.json provide configuration, build automation, dependency management, and project documentation.
• src Directory:
• Contains core modules (Auth.js, authorizer.js, hackuser.js) representing the main logic of the project.
• Each module should be represented as a distinct component in the architecture.