C# Class DotNetNuke.Extensions.Text.Encryptor

Provides methods for encrypting and decrypting clear texts.
Exibir arquivo Open project: JonHaywood/DotNetNuke.Extensions

Public Methods

Method Description
Decrypt ( string cipherText, string password, byte salt ) : string

Decrypts an encrypted text using specified password and salt.

Encrypt ( string clearText, string password, byte salt ) : string

Encrypts a clear text using specified password and salt.

Method Details

Decrypt() public method

Decrypts an encrypted text using specified password and salt.
public Decrypt ( string cipherText, string password, byte salt ) : string
cipherText string The text to decrypt.
password string The password used to encrypt text.
salt byte The salt added to encrypted text.
return string

Encrypt() public method

Encrypts a clear text using specified password and salt.
public Encrypt ( string clearText, string password, byte salt ) : string
clearText string The text to encrypt.
password string The password to create key for.
salt byte The salt to add to encrypted text to make it more secure.
return string