Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tusharpamnani/password-manager
A simple command-line password manager written in Rust. This project allows users to store, view, and search for password entries securely in a JSON file.
https://github.com/tusharpamnani/password-manager
cli password-manager project rust
Last synced: about 1 month ago
JSON representation
A simple command-line password manager written in Rust. This project allows users to store, view, and search for password entries securely in a JSON file.
- Host: GitHub
- URL: https://github.com/tusharpamnani/password-manager
- Owner: tusharpamnani
- License: mit
- Created: 2024-05-29T09:42:34.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-29T09:49:04.000Z (8 months ago)
- Last Synced: 2024-05-29T22:57:48.669Z (8 months ago)
- Topics: cli, password-manager, project, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Password Manager
A simple command-line password manager written in Rust. This project allows users to store, view, and search for password entries securely in a JSON file.
## Features
- Add new password entries
- View all stored password entries
- Search for a specific password entry by service name
- Secure storage of password entries in a JSON file## Installation
To use this password manager, you need to have Rust installed on your machine. If you don't have Rust installed, you can get it from [rust-lang.org](https://www.rust-lang.org/).
Clone the repository and navigate to the project directory:
```sh
git clone https://github.com/tusharpamnani/Password-Manager.git
cd Password-Manager
```## Usage
To run the password manager, use the following command:
```sh
cargo run
```### Menu Options
1. **Add a new password entry**: Prompts you to enter the service name, username, and password.
2. **View all password entries**: Displays all stored password entries.
3. **Search for a password entry**: Allows you to search for a password entry by service name.
4. **Exit**: Exits the application.## Example
```plaintext
_____ __ __ _ _
| __ \ \ \ / / | | |
| |__) |_ _ ___ ___ \ \ / /_ _ _ _| | |_
| ___/ _` / __/ __| \ \/ / _` | | | | | __|
| | | (_| \__ \__ \ \ / (_| | |_| | | |_
|_| \__,_|___/___/ \/ \__,_|\__,_|_|\__|Password Manager Menu:
1. Add a new password entry
2. View all password entries
3. Search for a password entry
4. ExitEnter your choice: 1
Service: GitHub
Username: user123
Password: mypasswordAdded new password entry
Password Manager Menu:
1. Add a new password entry
2. View all password entries
3. Search for a password entry
4. ExitEnter your choice: 2
Service: GitHub
- Username: user123
- Password: mypassword
```## File Structure
- `src/`
- `main.rs`: The main entry point for the application.
- `pass_entry.rs`: Contains the `ServiceInfo` struct and associated functions.
- `passwords.json`: The file where password entries are stored.## Contribution
If you would like to contribute to this project, feel free to open a pull request or file an issue on GitHub.
## License
This project is licensed under the MIT License.