PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/cryptography/lib/encoding

Просмотр файла: base64.native.cjs

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.decode = decode;
exports.encode = encode;

var _jsBase = require("js-base64");

/**
 * @param {string} text
 * @returns {Uint8Array}
 */
function decode(text) {
  return Uint8Array.from((0, _jsBase.atob)(text), c => c.charCodeAt(0));
}
/**
 * @param {Uint8Array} data
 * @returns {string};
 */


function encode(data) {
  return (0, _jsBase.btoa)(String.fromCharCode.apply(null, Array.from(data)));
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!