@kintone/plugin-packer
Version:
Package your kintone plugin with pure JavaScript
16 lines • 598 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.uuid = void 0;
const crypto_1 = __importDefault(require("crypto"));
const hex2a_1 = require("./hex2a");
const uuid = (publicKey) => {
const hash = crypto_1.default.createHash("sha256");
hash.update(publicKey);
const hexId = hash.digest().toString("hex").slice(0, 32);
return (0, hex2a_1.hex2a)(hexId);
};
exports.uuid = uuid;
//# sourceMappingURL=uuid.js.map