MCPcopy Create free account
hub / github.com/ShipSecAI/studio / encode

Method encode

packages/shared/src/secrets/encryption.ts:107–109  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

105 }
106
107 private static encode(bytes: Uint8Array): string {
108 return btoa(String.fromCharCode(...bytes));
109 }
110
111 private static decode(payload: string): Uint8Array {
112 return Uint8Array.from(atob(payload), (char) => char.charCodeAt(0));

Callers 2

encryptMethod · 0.80
parseMasterKeyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected