aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/Tango.AutoComplete/Enumerations.cs
blob: fdc6cbea1d7ae38ddbdb5f4c28f5a718c4c611d9 (plain)
1
2
3
4
5
public enum IconPlacement
{
    Left,
    Right
}
Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FSE.BL
{
    /// <summary>
    /// Represents an encryption/decryption mechanism for storing sensitive data using machine level protection.
    /// </summary>
    public interface ICryptographyProvider
    {
        /// <summary>
        /// Encrypts the specified text.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <returns></returns>
        String Encrypt(String text);

        /// <summary>
        /// Decrypts the specified encrypted text.
        /// </summary>
        /// <param name="encryptedText">The encrypted text.</param>
        /// <returns></returns>
        String Decrypt(String encryptedText);

        /// <summary>
        /// Encrypts the specified object.
        /// </summary>
        /// <param name="obj">The object.</param>
        /// <returns></returns>
        String Encrypt(Object obj);

        /// <summary>
        /// Decrypts the specified encrypted text.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="encryptedText">The encrypted text.</param>
        /// <returns></returns>
        T Decrypt<T>(String encryptedText);
    }
}