Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MONGO_URI = mongodb://localhost:27017
DB_NAME = passop
MONGO_URI = mongodb://localhost:27017/
DB_NAME = admin
# Encryption and Decryption keys
# Must be 256 bits (32 bytes)
ENCRYPTION_KEY = thisisaverysecureencryptionkey!!
Expand Down
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const bodyParser = require("body-parser");
const cors = require("cors");
const crypto = require("crypto");
dotenv.config();

//encryption is the most wonder full part of the project
// Encryption and Decryption keys
const ENCRYPTION_KEY = Buffer.from(process.env.ENCRYPTION_KEY, 'utf-8');
const IV_LENGTH = 16; // For AES, this is always 16
Expand Down
Loading