C# Class SteamDesktopAuth.FileHandler

ファイルを表示 Open project: Ezzpify/SteamAuthenticator

Public Methods

Method Description
DecryptSGAFile ( SteamGuardAccount account ) : bool

Edits a SGA file to either encrypt or decrypt the file

DeleteSGAFile ( SteamGuardAccount account ) : bool

Deletes a SGA file of an account if it exists

GetAllAccounts ( ) : List

Returns all accounts available in a list

IsSGAFileEncrypted ( SteamGuardAccount account ) : bool

Checks if an SGA file is encrypted

SaveSGAFile ( SteamGuardAccount account ) : bool

Saves a SteamGuardAccount to file in formatted json

Private Methods

Method Description
GetAccountFile ( SteamGuardAccount account ) : FileInfo

Finds the account file that belongs to a file

Method Details

DecryptSGAFile() public static method

Edits a SGA file to either encrypt or decrypt the file
public static DecryptSGAFile ( SteamGuardAccount account ) : bool
account SteamAuth.SteamGuardAccount Account to edit
return bool

DeleteSGAFile() public static method

Deletes a SGA file of an account if it exists
public static DeleteSGAFile ( SteamGuardAccount account ) : bool
account SteamAuth.SteamGuardAccount Account to delete files of
return bool

GetAllAccounts() public static method

Returns all accounts available in a list
public static GetAllAccounts ( ) : List
return List

IsSGAFileEncrypted() public static method

Checks if an SGA file is encrypted
public static IsSGAFileEncrypted ( SteamGuardAccount account ) : bool
account SteamAuth.SteamGuardAccount Account to check file of
return bool

SaveSGAFile() public static method

Saves a SteamGuardAccount to file in formatted json
public static SaveSGAFile ( SteamGuardAccount account ) : bool
account SteamAuth.SteamGuardAccount Account to save
return bool