MCPcopy Create free account
hub / github.com/Driver-C/tryssh / IsEncrypted

Function IsEncrypted

pkg/utils/crypto.go:186–188  ·  view source on GitHub ↗

IsEncrypted checks if a value has the encrypted prefix.

(s string)

Source from the content-addressed store, hash-verified

184
185// IsEncrypted checks if a value has the encrypted prefix.
186func IsEncrypted(s string) bool {
187 return strings.HasPrefix(s, encryptedPrefix)
188}

Callers 7

decryptConfigFunction · 0.92
encryptConfigForSaveFunction · 0.92
countPlaintextPasswordsFunction · 0.92
DecryptFunction · 0.85
TestIsEncryptedFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestIsEncryptedFunction · 0.68