MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / isEncrypted

Function isEncrypted

internal/config/encryption.go:119–121  ·  view source on GitHub ↗

isEncrypted checks if a string value is encrypted (starts with encryption prefix).

(value string)

Source from the content-addressed store, hash-verified

117
118// isEncrypted checks if a string value is encrypted (starts with encryption prefix).
119func isEncrypted(value string) bool {
120 return strings.HasPrefix(value, encryptionPrefix)
121}
122
123// EncryptField encrypts a sensitive field value using age encryption.
124// Returns the encrypted value with the encryption prefix, or an error.

Callers 5

EncryptFieldFunction · 0.85
DecryptFieldFunction · 0.85
EncryptSensitiveFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected