This Learning Management System (LMS) is a simple command-line application developed in Python. It allows administrators, teachers, and students to interact with the system securely. Users can register, log in, and perform specific tasks based on their roles.
- User Registration: Register users with different roles (Admin, Teacher, Student).
- Login: Authenticate users with username and password.
- Role-based Access: Different functionalities based on user roles.
- Secure API: Admin users can start a secure API.
- Python 3
- bcrypt library.
To install the bcrypt library, run the following command in your terminal:
pip install bcrypt
-
Clone the Repository: Clone this repository to your local machine.
-
Install Dependencies: Install the required Python packages:
pip install bcrypt
- Run the Application: Run the application.py file from the terminal or command prompt:
python application.py
- LMS
-- Application.py
-- Insecure_api.py
-- Secure-api.py
-- Brute_force.py
-- Api.py
-- README.md
After running the application, you will be prompted with options to register, log in,or exit the application.
Select Register to create a new account.
- Enter a username, password
- select a role (admin, teacher, or student).
Welcome to the Secure Learning Management System!
1. Register
2. Login
3. Exit
Choose an option: 1
Enter username: Abc
Enter password: Qwerty
Enter role (admin/teacher/student): admin
Admin registered successfully!
- Select Login to log into the system.
- Enter your username and password. Based on your role, different options will be displayed (e.g., Admins can start the secure API).
Welcome to the Secure Learning Management System!
1. Register
2. Login
3. Exit
Choose an option: 2
Enter username: Abc
Enter password: Qwerty
Login successful! Welcome, Abc.
Admins can start a secure API after logging in. Admins have access to more options compared to non-admin users.
1. Start Secure API
2. Logout
Choose an option: 1
Starting Secure API...
Secure API started successfully.