<?php
// security_addon.php

// Función para enviar el código de verificación
function sendVerificationEmail($email, $code) {
    $subject = "Verify your VVault Account";
    $message = "Your verification code is: " . $code . "\n\nPlease enter it in your dashboard to activate your account.";
    $headers = "From: no-reply@vvault.com";
    return mail($email, $subject, $message, $headers);
}

// Función para generar un token seguro
function generateToken() {
    return bin2hex(random_bytes(16));
}
?>