C# Class NZBDash.Common.Helpers.StringCipher

Show file Open project: NZBDash/NZBDash

Public Methods

Method Description
Decrypt ( string cipherText, string passPhrase ) : string

Decrypts the specified cipher text.

Encrypt ( string plainText, string passPhrase ) : string

Encrypts the specified plain text.

Private Methods

Method Description
Generate256BitsOfRandomEntropy ( ) : byte[]

Generate256s the bits of random entropy.

Method Details

Decrypt() public static method

Decrypts the specified cipher text.
public static Decrypt ( string cipherText, string passPhrase ) : string
cipherText string The cipher text.
passPhrase string The pass phrase.
return string

Encrypt() public static method

Encrypts the specified plain text.
public static Encrypt ( string plainText, string passPhrase ) : string
plainText string The plain text.
passPhrase string The pass phrase.
return string