MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / HasEncryptionKey

Method HasEncryptionKey

internal/store/encryption.go:24–26  ·  view source on GitHub ↗

HasEncryptionKey reports whether an encryption key is configured.

()

Source from the content-addressed store, hash-verified

22
23// HasEncryptionKey reports whether an encryption key is configured.
24func (s *Store) HasEncryptionKey() bool {
25 return len(s.encryptionKey) == 32
26}
27
28// encrypt encrypts plaintext using AES-256-GCM and returns a base64-encoded
29// ciphertext prefixed with "enc:" to distinguish from plaintext values.

Callers 4

encryptMethod · 0.95
decryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected