C# Class SteamDesktopAuth.FileHandler

Afficher le fichier Open project: Ezzpify/SteamAuthenticator

Méthodes publiques

Méthode 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

Méthode Description
GetAccountFile ( SteamGuardAccount account ) : FileInfo

Finds the account file that belongs to a file

Method Details

DecryptSGAFile() public static méthode

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

DeleteSGAFile() public static méthode

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

GetAllAccounts() public static méthode

Returns all accounts available in a list
public static GetAllAccounts ( ) : List
Résultat List

IsSGAFileEncrypted() public static méthode

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

SaveSGAFile() public static méthode

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