MCPcopy Create free account
hub / github.com/stackblitz/bolt.new / decodeBase64

Function decodeBase64

app/lib/crypto.ts:50–54  ·  view source on GitHub ↗
(encoded: Uint8Array)

Source from the content-addressed store, hash-verified

48}
49
50function decodeBase64(encoded: Uint8Array) {
51 const byteChars = Array.from(encoded, (byte) => String.fromCodePoint(byte));
52
53 return btoa(byteChars.join(''));
54}
55
56function encodeBase64(data: string) {
57 return Uint8Array.from(atob(data), (ch) => ch.codePointAt(0)!);

Callers 1

encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected