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

Method decode

packages/shared/src/secrets/encryption.ts:111–113  ·  view source on GitHub ↗
(payload: string)

Source from the content-addressed store, hash-verified

109 }
110
111 private static decode(payload: string): Uint8Array {
112 return Uint8Array.from(atob(payload), (char) => char.charCodeAt(0));
113 }
114
115 private static toArrayBuffer(view: ArrayBufferView): ArrayBuffer {
116 return view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength) as ArrayBuffer;

Callers 5

buildHarResponseFunction · 0.80
decryptMethod · 0.80
connectMethod · 0.80
captureStreamFunction · 0.80

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected