C# Class CCNet.Build.Common.CertificateEncryptor

Encrypts using a specific certificate.
Show file Open project: shuruev/CCNet.Extensions Class Usage Examples

Public Methods

Method Description
CertificateEncryptor ( X509Certificate2 certificate ) : System

Initializes a new instance.

Decrypt ( byte data ) : byte[]

Decrypts specified data.

Encrypt ( byte data ) : byte[]

Encrypts specified data.

Method Details

CertificateEncryptor() public method

Initializes a new instance.
public CertificateEncryptor ( X509Certificate2 certificate ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
return System

Decrypt() public method

Decrypts specified data.
public Decrypt ( byte data ) : byte[]
data byte
return byte[]

Encrypt() public method

Encrypts specified data.
public Encrypt ( byte data ) : byte[]
data byte
return byte[]