MCPcopy Create free account
hub / github.com/pollinations/pollinations / bytesFromB64

Function bytesFromB64

shared/github/app-auth.ts:51–56  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

49}
50
51function bytesFromB64(b64: string): Uint8Array {
52 const bin = atob(b64);
53 const out = new Uint8Array(bin.length);
54 for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i);
55 return out;
56}
57
58// ---- PEM -> DER ----
59

Callers 1

pemToDerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected