using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.FSE.BL { /// /// Represents an encryption/decryption mechanism for storing sensitive data using machine level protection. /// public interface ICryptographyProvider { /// /// Encrypts the specified text. /// /// The text. /// String Encrypt(String text); /// /// Decrypts the specified encrypted text. /// /// The encrypted text. /// String Decrypt(String encryptedText); /// /// Encrypts the specified object. /// /// The object. /// String Encrypt(Object obj); /// /// Decrypts the specified encrypted text. /// /// /// The encrypted text. /// T Decrypt(String encryptedText); } }