MCPcopy
hub / github.com/slopus/happy / encodeBase64

Function encodeBase64

packages/happy-agent/src/encryption.ts:6–8  ·  view source on GitHub ↗
(buffer: Uint8Array)

Source from the content-addressed store, hash-verified

4// --- Base64 encoding/decoding ---
5
6export function encodeBase64(buffer: Uint8Array): string {
7 return Buffer.from(buffer).toString('base64');
8}
9
10export function decodeBase64(base64: string): Uint8Array {
11 return new Uint8Array(Buffer.from(base64, 'base64'));

Callers 15

makeRawSessionLegacyFunction · 0.90
cli-smoke.test.tsFile · 0.90
spawnSessionOnMachineFunction · 0.90
resumeSessionOnMachineFunction · 0.90
makeRawSessionLegacyFunction · 0.90
api.test.tsFile · 0.90
writeCredentialsFunction · 0.90
sendMessageMethod · 0.90
makeEncryptedUpdateFunction · 0.90

Calls

no outgoing calls

Tested by 7

makeRawSessionLegacyFunction · 0.72
makeRawSessionLegacyFunction · 0.72
makeEncryptedUpdateFunction · 0.72
makeSessionUpdateFunction · 0.72
approveAgentLoginFunction · 0.72