forked from parakramgambhir14/CryptVault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecurity.h
More file actions
27 lines (18 loc) · 705 Bytes
/
Copy pathsecurity.h
File metadata and controls
27 lines (18 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef SECURITY_H
#define SECURITY_H
#include <string>
// ================= SELF-DESTRUCT =================
// Deletes sensitive files permanently
void destroyVault();
// ================= EXPIRY CHECK =================
// Checks if vault has expired and triggers destroyVault if needed
void checkExpiry();
// ================= ENCRYPTION =================
// Simple encryption prototype (shift cipher)
std::string encrypt(std::string s);
std::string decrypt(std::string s);
// ================= PASSWORD STRENGTH =================
// Returns score 1-4 based on:
// 1 = uppercase, 2 = lowercase, 3 = digit, 4 = special char
int passwordStrength(std::string pwd);
#endif