$34 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/sigstore/dist/util/

HOME
Current File : /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/sigstore/dist/util//pem.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromDER = exports.toDER = void 0;
/*
Copyright 2022 The Sigstore Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const PEM_HEADER = /-----BEGIN (.*)-----/;
const PEM_FOOTER = /-----END (.*)-----/;
function toDER(certificate) {
    let der = '';
    certificate.split('\n').forEach((line) => {
        if (line.match(PEM_HEADER) || line.match(PEM_FOOTER)) {
            return;
        }
        der += line;
    });
    return Buffer.from(der, 'base64');
}
exports.toDER = toDER;
// Translates a DER-encoded buffer into a PEM-encoded string. Standard PEM
// encoding dictates that each certificate should have a trailing newline after
// the footer.
function fromDER(certificate, type = 'CERTIFICATE') {
    // Base64-encode the certificate.
    const der = certificate.toString('base64');
    // Split the certificate into lines of 64 characters.
    const lines = der.match(/.{1,64}/g) || '';
    return [`-----BEGIN ${type}-----`, ...lines, `-----END ${type}-----`]
        .join('\n')
        .concat('\n');
}
exports.fromDER = fromDER;

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
appdata.d.ts
0.058 KB
7 Dec 2023 1.07 AM
root / root
0644
appdata.js
1.058 KB
7 Dec 2023 1.07 AM
root / root
0644
crypto.d.ts
0.608 KB
7 Dec 2023 1.07 AM
root / root
0644
crypto.js
2.228 KB
7 Dec 2023 1.07 AM
root / root
0644
dsse.d.ts
0.115 KB
7 Dec 2023 1.07 AM
root / root
0644
dsse.js
0.974 KB
7 Dec 2023 1.07 AM
root / root
0644
encoding.d.ts
0.359 KB
7 Dec 2023 1.07 AM
root / root
0644
encoding.js
1.737 KB
7 Dec 2023 1.07 AM
root / root
0644
index.d.ts
0.299 KB
7 Dec 2023 1.07 AM
root / root
0644
index.js
2.221 KB
7 Dec 2023 1.07 AM
root / root
0644
json.d.ts
0.058 KB
7 Dec 2023 1.07 AM
root / root
0644
json.js
1.938 KB
7 Dec 2023 1.07 AM
root / root
0644
oidc.d.ts
0.063 KB
7 Dec 2023 1.07 AM
root / root
0644
oidc.js
2.096 KB
7 Dec 2023 1.07 AM
root / root
0644
pem.d.ts
0.164 KB
7 Dec 2023 1.07 AM
root / root
0644
pem.js
1.577 KB
7 Dec 2023 1.07 AM
root / root
0644
promise.d.ts
0.084 KB
7 Dec 2023 1.07 AM
root / root
0644
promise.js
1.235 KB
7 Dec 2023 1.07 AM
root / root
0644
stream.d.ts
0.671 KB
7 Dec 2023 1.07 AM
root / root
0644
stream.js
3.504 KB
7 Dec 2023 1.07 AM
root / root
0644
ua.d.ts
0.048 KB
7 Dec 2023 1.07 AM
root / root
0644
ua.js
1.402 KB
7 Dec 2023 1.07 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF