Password Shield is a Password Manager
TUI program written in C++. This program uses file (password.txt) to store Website name, Username/Email and Password. RSA Algorithm
is implemented inside this program. Password Encryption
and Decryption
is done by RSA Algorithm
. RSA algorithm is an asymmetric cryptography algorithm.
This program can do the following things:
First asks for the master password which is 1234
Generates
a pseudo random password- Generated password is
automatically copied
to clipboard using ClipboardXX library - Passwords can be saved inside the password.txt file
- Generated password is
Stores
the password in password.txt file. Before storing it encrypts the password usingPublic Key
.Finds
the saved passwords from password.txt . It finds the encrypted password then decrypts it usingPrivate Key
before printing.Change
a particular password. Finds the encrypted password then replaces it with another new encrypted password.Delete
an entry (whole line).View Saved Passwords
. It reads from the password.txt file and decrypts all the password usingPrivate Key
before printing it to the terminal/console.
q
Quits the program.
Requirements:
C++ compiler (C++17
or above is needed to compile the program) needs to be installed in your pc.
gcd() function is used inside this code that is only available from C++17. To Download the latest compiler SEE MSYS2 or For VS Code Users.
You can also run it using Codeblocks. Change your compiler in codeblocks to C++ 17 or above (settings > compiler).
This program uses this external library to copy paste generated password automatically to clipboard. This library only works on Windows and Linux (X11 only). Please see the external library Github Page for further info.
conio.h header file is not available outside of Windows. If you want to run this program on linux, you need to download the header file.