"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.legacySha512 = exports.legacySha256 = exports.legacyHash = void 0;
const crypto_1 = require("crypto");
/**
 * @deprecated
 */
function legacyHash(input, algorithm) {
    let hash = (0, crypto_1.createHash)(algorithm);
    hash.update(input);
    return hash.digest('hex');
}
exports.legacyHash = legacyHash;
/**
 * @deprecated
 */
function legacySha256(input) {
    return legacyHash(input, 'sha256');
}
exports.legacySha256 = legacySha256;
/**
 * @deprecated
 */
function legacySha512(input) {
    return legacyHash(input, 'sha512');
}
exports.legacySha512 = legacySha512;
