Encrypts a given value.
An EncryptedData object containing the encrypted value.
The value to be encrypted.