PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@iota/bcs/dist/esm

Просмотр файла: b64.js

function fromBase64(base64String) {
  return Uint8Array.from(atob(base64String), (char) => char.charCodeAt(0));
}
const CHUNK_SIZE = 8192;
function toBase64(bytes) {
  if (bytes.length < CHUNK_SIZE) {
    return btoa(String.fromCharCode(...bytes));
  }
  let output = "";
  for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
    const chunk = bytes.slice(i, i + CHUNK_SIZE);
    output += String.fromCharCode(...chunk);
  }
  return btoa(output);
}
const toB64 = toBase64;
const fromB64 = fromBase64;
export {
  fromB64,
  fromBase64,
  toB64,
  toBase64
};
//# sourceMappingURL=b64.js.map

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


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