feat: 초기 프로젝트 설정 및 룰.md 파일 추가

This commit is contained in:
2025-07-28 09:53:31 +09:00
commit 09a4d38512
8165 changed files with 1021855 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertPEMToBytes = convertPEMToBytes;
const index_js_1 = require("./iso/index.js");
/**
* Take a certificate in PEM format and convert it to bytes
*/
function convertPEMToBytes(pem) {
const certBase64 = pem
.replace('-----BEGIN CERTIFICATE-----', '')
.replace('-----END CERTIFICATE-----', '')
.replace(/[\n ]/g, '');
return index_js_1.isoBase64URL.toBuffer(certBase64, 'base64');
}