MCPcopy Create free account
hub / github.com/dailydotdev/apps / base64ToBuf

Function base64ToBuf

packages/shared/src/components/crypto.ts:3–4  ·  view source on GitHub ↗
(b: string)

Source from the content-addressed store, hash-verified

1import { isDevelopment, isProductionAPI } from '../lib/constants';
2
3const base64ToBuf = (b: string) =>
4 Uint8Array.from(atob(b), (c) => c.charCodeAt(0));
5
6export const decrypt = async (
7 input: string,

Callers 1

decryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected