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

Method HasEncryptionKey

internal/store/encryption.go:27–29  ·  view source on GitHub ↗

HasEncryptionKey reports whether an encryption key is configured.

()

Source from the content-addressed store, hash-verified

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

Callers 7

encryptMethod · 0.95
decryptMethod · 0.95
DeriveServerKeyMethod · 0.95

Calls

no outgoing calls