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

Function isEncryptedApiKeyFormat

apps/sim/lib/api-key/crypto.ts:82–84  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

80 * @returns true if the key uses the new encrypted format (sk-sim- prefix)
81 */
82export function isEncryptedApiKeyFormat(apiKey: string): boolean {
83 return apiKey.startsWith('sk-sim-')
84}
85
86/**
87 * Determines if an API key uses the legacy format based on prefix

Callers 3

formatApiKeyForDisplayFunction · 0.90
crypto.test.tsFile · 0.90
auth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected