This project is a CRUD (Create, Read, Update, Delete) application for managing user data with AES encryption for sensitive information. It is built using PHP and Bootstrap for a responsive and user-friendly interface.
- Add new users with encrypted data.
- View user details with decrypted data.
- Edit user information with decryption and re-encryption.
- Delete users from the database.
- Decrypt data manually using a decryption form.
- PHP
- Bootstrap 4.5
- MySQL
- AES Encryption
-
Clone the repository:
git clone https://github.com/Kholik-Muzaki/Enkrispi-Database.git
-
Navigate to the project directory:
cd your-repository
-
Setup your database:
- Create a MySQL database.
- Import the
database.sql
file to create the necessary tables. - Update
koneksi.php
with your database credentials.
-
Setup environment variables:
- Create a
.env
file in the project root directory. - Add your AES encryption key in the
.env
file:AES_KEY=your_secret_key
- Create a
-
Run the application:
- Place the project in your web server's root directory.
- Open the application in your browser.
- Navigate to the Add User page.
- Fill in the user's details.
- Click the "Simpan" button to save the encrypted user data.
- Navigate to the main page to view the list of users.
- Click on "Detail" to view the decrypted user details.
- Navigate to the main page to view the list of users.
- Click on "Edit" to modify the user details.
- Update the information and click "Simpan" to save the changes with encryption.
- Navigate to the main page to view the list of users.
- Click on "Hapus" to remove the user from the database.
- Navigate to the Decrypt Data page.
- Enter the encrypted data and IV (Base64).
- Click the "Dekripsi" button to view the decrypted information.