C# Класс CCNet.Build.Common.SecureConfig

Helps storing sensitive data in a secure way.
Показать файл Открыть проект

Открытые методы

Метод Описание
Decrypt ( string text ) : string

Decrypts text from its specified UTF-8 binary representation.

Decrypt64 ( string text ) : string

Decrypts data from its specified base-64 representation.

Encrypt ( string text ) : string

Encrypts specified text using UTF-8 as its binary representation.

Encrypt64 ( string text ) : string

Encrypts specified data specified by its base-64 representation.

Initialize ( string thumbprint ) : void

Initializes a secured storage using certificate with specified thumbprint.

Приватные методы

Метод Описание
Find ( string thumbprint ) : X509Certificate2

Tries to find certificate by specified thumbprint.

Описание методов

Decrypt() публичный статический Метод

Decrypts text from its specified UTF-8 binary representation.
public static Decrypt ( string text ) : string
text string
Результат string

Decrypt64() публичный статический Метод

Decrypts data from its specified base-64 representation.
public static Decrypt64 ( string text ) : string
text string
Результат string

Encrypt() публичный статический Метод

Encrypts specified text using UTF-8 as its binary representation.
public static Encrypt ( string text ) : string
text string
Результат string

Encrypt64() публичный статический Метод

Encrypts specified data specified by its base-64 representation.
public static Encrypt64 ( string text ) : string
text string
Результат string

Initialize() публичный статический Метод

Initializes a secured storage using certificate with specified thumbprint.
public static Initialize ( string thumbprint ) : void
thumbprint string
Результат void