MCPcopy Index your code
hub / github.com/simstudioai/sim / decryptCredentials

Function decryptCredentials

apps/sim/lib/data-drains/encryption.ts:18–21  ·  view source on GitHub ↗
(ciphertext: string)

Source from the content-addressed store, hash-verified

16 * encryption-format drift.
17 */
18export async function decryptCredentials<T>(ciphertext: string): Promise<T> {
19 const { decrypted } = await decryptSecret(ciphertext)
20 return JSON.parse(decrypted) as T
21}

Callers 2

runDrainFunction · 0.90
route.tsFile · 0.90

Calls 2

decryptSecretFunction · 0.90
parseMethod · 0.80

Tested by

no test coverage detected