Interface IEncryptionService
Service for encrypting and decrypting sensitive data.
public interface IEncryptionService
Methods
Decrypt(string)
Decrypts an encrypted string.
string Decrypt(string cipherText)
Parameters
cipherTextstringBase64-encoded encrypted string.
Returns
- string
The decrypted plaintext.
Encrypt(string)
Encrypts a plaintext string.
string Encrypt(string plainText)
Parameters
plainTextstringThe text to encrypt.
Returns
- string
Base64-encoded encrypted string.