C# Class Orc.LicenseManager.CryptoHelper

This code originally comes from http://stackoverflow.com/questions/10168240/encrypting-decrypting-a-string-in-c-s
显示文件 Open project: WildGums/Orc.LicenseManager

Public Methods

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

Private Methods

Method Description
GenerateRandomBytes ( int keySizeInBits ) : byte[]

Method Details

Decrypt() public static method

public static Decrypt ( string cipherText, string passPhrase ) : string
cipherText string
passPhrase string
return string

Encrypt() public static method

public static Encrypt ( string plainText, string passPhrase ) : string
plainText string
passPhrase string
return string