MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / encryptCredentialData

Function encryptCredentialData

packages/server/src/utils/index.ts:1597–1600  ·  view source on GitHub ↗
(plainDataObj: ICredentialDataDecrypted)

Source from the content-addressed store, hash-verified

1595 * @returns {Promise<string>}
1596 */
1597export const encryptCredentialData = async (plainDataObj: ICredentialDataDecrypted): Promise<string> => {
1598 const encryptKey = await getEncryptionKey()
1599 return AES.encrypt(JSON.stringify(plainDataObj), encryptKey).toString()
1600}
1601
1602/**
1603 * Decrypt credential data

Callers 5

index.tsFile · 0.90
setWebhookSecretFunction · 0.90
createCustomMcpServerFunction · 0.90
updateCustomMcpServerFunction · 0.90

Calls 2

stringifyMethod · 0.80
getEncryptionKeyFunction · 0.70

Tested by

no test coverage detected