"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateDeviceFingerprint = void 0;
const crypto_1 = __importDefault(require("crypto"));
const generateDeviceFingerprint = (input) => {
    const normalized = [
        (input.userAgent ?? '').trim().toLowerCase(),
        input.ipAddress.trim(),
        (input.acceptLanguage ?? '').trim().toLowerCase(),
    ].join('|');
    return crypto_1.default.createHash('sha256').update(normalized).digest('hex');
};
exports.generateDeviceFingerprint = generateDeviceFingerprint;
//# sourceMappingURL=device-fingerprint.js.map