"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cypher = void 0;
const dayjs = require("dayjs");
const crypto = require("crypto");
class Cypher {
    static nowTimestamp() {
        return dayjs().format('YYYY-MM-DD h:mm:ss');
    }
    static sha1(data) {
        const generator = crypto.createHash('sha1');
        generator.update(data);
        return generator.digest('hex');
    }
    static base64Encode(data) {
        return Buffer.from(data).toString('base64');
    }
    static base64Decode(data) {
        return Buffer.from(data, 'base64').toString('utf-8');
    }
}
exports.Cypher = Cypher;
