https://github.com/johnbedeir/password-manager
This application is a free password manager where you can input NAME and EMAIL then a complex password will be generated and automatically store them in the Database
https://github.com/johnbedeir/password-manager
Last synced: 12 months ago
JSON representation
This application is a free password manager where you can input NAME and EMAIL then a complex password will be generated and automatically store them in the Database
- Host: GitHub
- URL: https://github.com/johnbedeir/password-manager
- Owner: johnbedeir
- Created: 2023-03-28T16:04:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T22:44:06.000Z (about 3 years ago)
- Last Synced: 2025-04-06T19:27:57.847Z (about 1 year ago)
- Language: Go
- Size: 23.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# password-manager
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.
### Steps to run the application:
1. [Instal MongoDB](https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/)
2. [Install Studio3T](https://studio3t.com/knowledge-base/articles/installation/)
3. Make sure `MongoDB` is installed and running on `localhost:27017`
### Open `Studio3T` application and connect to `mongodb://localhost:27017`

### Connect to the database

### Run the App:
```
./passgen
```
Output:
```
Enter name for the password: gmail
Enter user name: mail@gmail.com
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:

### For `Password Decryption` run the following:
```
./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.


### To build the application:
### Install [GoLang](https://go.dev/doc/install)
`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
```