Class MessageEncryptionService
public class MessageEncryptionService : IMessageEncryptionService
- Inheritance
-
MessageEncryptionService
- Implements
- Inherited Members
Constructors
MessageEncryptionService(IConfiguration, ILogger<MessageEncryptionService>)
public MessageEncryptionService(IConfiguration configuration, ILogger<MessageEncryptionService> logger)
Parameters
configurationIConfigurationloggerILogger<MessageEncryptionService>
Properties
EncryptDatabaseEnabled
Whether database content should be encrypted at rest (server setting).
public bool EncryptDatabaseEnabled { get; }
Property Value
Methods
Decrypt(string)
public string Decrypt(string content)
Parameters
contentstring
Returns
DecryptNullable(string?)
public string? DecryptNullable(string? value)
Parameters
valuestring
Returns
Encrypt(string)
public string Encrypt(string plaintext)
Parameters
plaintextstring
Returns
EncryptNullable(string?)
public string? EncryptNullable(string? value)
Parameters
valuestring