Encrypts a plain-text JSON string and returns a serialised IEncryptedConfig.
The JSON string to encrypt.
Passphrase used to derive the encryption key.
Pretty-printed JSON string of the encrypted payload.
Encrypts a plain-text JSON string and returns a serialised IEncryptedConfig.