C# Class CCNet.Build.Common.CertificateEncryptor

Encrypts using a specific certificate.
Afficher le fichier Open project: shuruev/CCNet.Extensions Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Decrypt() public méthode

Decrypts specified data.
public Decrypt ( byte data ) : byte[]
data byte
Résultat byte[]

Encrypt() public méthode

Encrypts specified data.
public Encrypt ( byte data ) : byte[]
data byte
Résultat byte[]