encryptValue method

String encryptValue(
  1. String value
)

Encrypts a config value with AES-256-GCM using the config key embedded in the abstraction layer. Returns ENC: + base64 of nonce(12) + ciphertext + gcmTag(16); a fresh random nonce is generated on every call. An empty value is returned unchanged.

Implementation

String encryptValue(String value) => encodeConfigValue(value);