// Şifreleme fonksiyonları cryptolama tekniği
function encrypt(text) {
const cipher = crypto.createCipher('aes-256-cbc', 'a_password');
let encrypted = cipher.update(text, 'utf8', 'hex');
encrypted += cipher.final('hex');
return encrypted;
}
function decrypt(text) {
const decipher = crypto.createDecipher('aes-256-cbc', 'a_password');
let decrypted = decipher.update(text, 'hex', 'utf8');
decrypted += decipher.final('utf8');
return decrypted;
}