C# Class SteamDesktopAuth.Crypto

显示文件 Open project: Ezzpify/SteamAuthenticator

Public Properties

Property Type Description
crySalt byte[]
crySecret string

Public Methods

Method Description
DecryptStringAES ( string cipherText ) : string

Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.

EncryptStringAES ( string plainText ) : string

Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.

Private Methods

Method Description
ReadByteArray ( Stream s ) : byte[]

Reads barr from stream

Method Details

DecryptStringAES() public static method

Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.
public static DecryptStringAES ( string cipherText ) : string
cipherText string The text to decrypt.
return string

EncryptStringAES() public static method

Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.
public static EncryptStringAES ( string plainText ) : string
plainText string The text to encrypt.
return string

Property Details

crySalt public_oe static_oe property

public static byte[] crySalt
return byte[]

crySecret public_oe static_oe property

General variables
public static string crySecret
return string