MCPcopy Create free account
hub / github.com/ConsortiumAI/Consortium / decodeBase64

Function decodeBase64

packages/consortium-web/src/lib/encryption.ts:28–30  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

26}
27
28export function decodeBase64(str: string): Uint8Array {
29 return sodium.from_base64(str, sodium.base64_variants.ORIGINAL);
30}
31
32export function encodeBase64Url(data: Uint8Array): string {
33 return sodium.to_base64(data, sodium.base64_variants.URLSAFE_NO_PADDING);

Callers 4

decryptMessageUpdateFunction · 0.90
resolveSessionKeyFunction · 0.90
fetchSessionsFunction · 0.90
fetchMessagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected