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

Function decryptSecret

apps/sim/lib/core/security/encryption.ts:30–37  ·  view source on GitHub ↗
(encryptedValue: string)

Source from the content-addressed store, hash-verified

28 * rethrows on malformed input or tampered ciphertext.
29 */
30export async function decryptSecret(encryptedValue: string): Promise<{ decrypted: string }> {
31 try {
32 return await decrypt(encryptedValue, getEncryptionKey())
33 } catch (error) {
34 logger.error('Decryption error:', { error: toError(error).message })
35 throw error
36 }
37}
38
39/**
40 * Generates a secure random password

Callers 15

getBYOKKeyFunction · 0.90
utils.test.tsFile · 0.90
validateDeploymentAuthFunction · 0.90
encryption.test.tsFile · 0.90
decryptCredentialsFunction · 0.90
decryptAllFunction · 0.90
upsertPersonalEnvVarsFunction · 0.90
loadPreregisteredClientFunction · 0.90
safeDecryptFunction · 0.90
revokeMcpOauthTokensFunction · 0.90
oauthCredsChangedFunction · 0.90
getServiceAccountTokenFunction · 0.90

Calls 4

decryptFunction · 0.90
toErrorFunction · 0.90
getEncryptionKeyFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected