MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / decodeSecret

Function decodeSecret

apps/desktop/src/main/secret-store.ts:82–89  ·  view source on GitHub ↗
(encoded: string)

Source from the content-addressed store, hash-verified

80}
81
82function decodeSecret(encoded: string): string | null {
83 if (!safeStorage.isEncryptionAvailable()) return null
84 try {
85 return safeStorage.decryptString(Buffer.from(encoded, 'base64'))
86 } catch {
87 return null
88 }
89}
90
91export async function getRemoteWorkspaceSecret(id: string): Promise<string | null> {
92 const normalizedId = id.trim()

Callers 1

getRemoteWorkspaceSecretFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected