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

Function encryptCredentials

apps/sim/lib/data-drains/encryption.ts:8–11  ·  view source on GitHub ↗
(plaintext: T)

Source from the content-addressed store, hash-verified

6 * `data_drains.destination_credentials`. Wraps the shared AES-256-GCM helper.
7 */
8export async function encryptCredentials<T>(plaintext: T): Promise<string> {
9 const { encrypted } = await encryptSecret(JSON.stringify(plaintext))
10 return encrypted
11}
12
13/**
14 * Decrypts the inverse of `encryptCredentials`. The caller is expected to run

Callers 2

route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

encryptSecretFunction · 0.90

Tested by

no test coverage detected