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

Encrypts/decrypts a string using symmetric key.
Afficher le fichier Open project: TargetProcess/Tp.Integration.Ide.VisualStudio

Méthodes publiques

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

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

Crypto() public méthode

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.
Résultat System

Decrypt() public méthode

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

Encrypt() public méthode

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