"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sha1 = exports.sha256 = exports.randomInt = void 0;
const crypto_1 = require("crypto");
function sha256(str, encoding = 'hex') {
    return (0, crypto_1.createHash)('sha256').update(str).digest(encoding);
}
exports.sha256 = sha256;
function sha1(str, encoding = 'hex') {
    return (0, crypto_1.createHash)('sha1').update(str).digest(encoding);
}
exports.sha1 = sha1;
function randomInt(low, high) {
    return Math.floor(Math.random() * (high - low) + low);
}
exports.randomInt = randomInt;
//# sourceMappingURL=crypto.js.map