<?php

if (!defined('IN_SITE')) {
    die('The Request Not Found');
}
$hash_5e1a9c = '18c2d09000a8bb37d2958a746eaddc7cb0faafd567922223cac62da72f62b8b2';
if (!function_exists('verify_license_integrity_5e1a9c')) {
    function verify_license_integrity_5e1a9c($expectedHash)
    {
        static $verified = false;
        if ($verified) {
            return;
        }
        $licenseFile = __DIR__ . '/../models/is_license.php';
        if (!is_file($licenseFile) || hash_file('sha256', $licenseFile) !== $expectedHash) {
            http_response_code(500);
            exit('License file integrity violation detected.');
        }
        $verified = true;
    }
}
verify_license_integrity_5e1a9c($hash_5e1a9c);
unset($hash_5e1a9c);

use PragmaRX\Google2FAQRCode\Google2FA;

// tạo mã google 2fa
function generateSecretKey_Google2FA()
{
    $google2fa = new Google2FA();
    return $google2fa->generateSecretKey();
}
