encrypt
Encrypts the provided plaintext data.
This method is called by the SDK when storing sensitive data to disk.
Return
The encrypted data, including any necessary metadata (e.g., IV, authentication tag)
Parameters
plaintext
The raw data to encrypt
context
Identifies what is being encrypted. Can be used to apply different encryption strategies or keys per data type.
Throws
EncryptionProviderException
if encryption fails for any reason