C# Class Tp.Integration.Ide.VisualStudio.Utils.Crypto

Encrypts/decrypts a string using symmetric key.
Exibir arquivo Open project: TargetProcess/Tp.Integration.Ide.VisualStudio

Public Methods

Method Description
Crypto ( ) : System

Creates new crypto helper using current machine and user name as the symmetric key.

Crypto ( string key ) : System

Creates new crypto helper using the specified symmetric key.

Decrypt ( string source ) : string

Decrypts the specified encrypted string.

Encrypt ( string source ) : string

Encrypts the specified source string.

Method Details

Crypto() public method

Creates new crypto helper using current machine and user name as the symmetric key.
public Crypto ( ) : System
return System

Crypto() public method

Creates new crypto helper using the specified symmetric key.
If is null. If is empty string.
public Crypto ( string key ) : System
key string Symmetric encryption key.
return System

Decrypt() public method

Decrypts the specified encrypted string.
If is null.
public Decrypt ( string source ) : string
source string Encrypted string to decrypt.
return string

Encrypt() public method

Encrypts the specified source string.
If is null.
public Encrypt ( string source ) : string
source string The string to encrypt.
return string