Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ isDevelopment, isProductionAPI } from
'../lib/constants'
;
2
3
const
base64ToBuf = (b: string) =>
4
Uint8Array.from(atob(b), (c) => c.charCodeAt(0));
5
6
export
const
decrypt =
async
(
7
input: string,
Callers
1
decrypt
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected