This Java Bank Program is designed to manage bank accounts with features such as logging, password encryption, and JSON file-based database storage.
- Logging: Logs all activities and transactions.
- Password Encryption: Encrypts user passwords for secure storage.
- JSON Database: Uses a JSON file to store user data and transaction history.
- Java Development Kit (JDK) 8 or higher
- Gson library for JSON parsing
-
Clone the repository:
git clone https://github.com/Veerendra-Prasad/Java_Bank.git cd Java_Bank
-
Install the Gson library: If you are using Maven, add the following dependency to your
pom.xml
:<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.6</version> </dependency>
-
Compile the program:
javac -cp .gson-2.8.6.jar App.java;
-
Run the program:
java -cp .gson-2.8.6.jar App;
- Database File: The JSON file used as the database is located at
src/database.json
.
Here's an example of how to use the program:
- Create a new account:
- Enter your name, password, and initial balance.
- Login to your account:
- Enter your name and password.
- Perform transactions:
- Deposit, withdraw, or check your balance.
Feel free to fork this repository and contribute by submitting a pull request. Please ensure your changes are well-documented and tested.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, please contact [email protected]
.
- The Gson library for JSON parsing
- Creating a custom class for logging the transcations