This application is a free password manager where you add the NAME
and the EMAIL
then a PASSWORD
will be generated and Encrypted
before storing it in the MONGODB
database.
- Instal MongoDB
- Install Studio3T
- Make sure
MongoDB
is installed and running onlocalhost:27017
./passgen
Output:
Enter name for the password: gmail
Enter user name: [email protected]
Generated password: n@4^lM%6-f,NdkB3
Password stored in MongoDB database with name gmail in collection passwords
The Password
will be Encrypted
as shown in the database:
./decrypt
This will ask you about the name of the Password
you would like to Decrypt
and it will be revealed in the terminal as shown.
Install GoLang
NOTE:
Make sure Go is installed by running go version
NOTE:
You can update the encrypt key in the encrypt.go
that will be used in the encryption process.
const encryptKey = "znq2cnz9rja_WFW_cda"
This will create 2 executable files one to generate the password and the other one to decrypt it.
go mod tidy
go build main.go encrypt.go
go build decrypt.go encrypt.go