A simple command-line password manager written in C that utilizes the libsodium library for password hashing and sqlite3 for database storage. This password manager allows users to store, edit, delete, and search for passwords associated with different platforms and usernames.
- Add new password entries.
- Edit existing password entries.
- Delete password entries.
- Search for passwords by platform or username.
Before you begin, ensure you have the following dependencies installed on your system:
- gcc: The GNU Compiler Collection.
- libsodium: A modern, easy-to-use software library for encryption, decryption, signatures, password hashing, and more.
- sqlite3: A C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.
Follow these steps to build the CLI Password Manager:
-
Clone the repository:
git https://github.com/sandeshkhadka/c-passmanager.git cd cd c-passmanager
-
Build the project using the provided Makefile:
make
-
After a successful build, the executable
cpassmanager
will be created in the project directory.
The CLI Password Manager offers several commands to interact with your stored passwords.
-
Show the main menu:
./cpassmanager menu
-
Display help text:
./cpassmanager help
-
List all stored passwords:
./cpassmanager all
-
Add a new password entry:
./cpassmanager addnew
-
Search for passwords by platform or username:
./cpassmanager searchby platform # Search by platform ./cpassmanager searchby username # Search by username
To remove the compiled binary and object files, run:
make clean