HasEncryptionKey reports whether an encryption key is configured.
()
| 22 | |
| 23 | // HasEncryptionKey reports whether an encryption key is configured. |
| 24 | func (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. |
no outgoing calls
no test coverage detected