C# Class Sharpex2D.Content.ContentVerifier

Exibir arquivo Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Verify ( Stream fileStream, string expectedSha256 ) : bool

Checks whether the content file is modified.

Verify ( string contentPath, string expectedSha256 ) : bool

Checks whether the content file is modified.

Private Methods

Method Description
ContentVerifier ( ) : System

Initializes a new ContentVerifier class.

Sha256 ( Stream fileStream ) : string

Gets the Sha256-Hash of a file.

Sha256 ( string file ) : string

Gets the Sha256-Hash of a file.

Method Details

Verify() public method

Checks whether the content file is modified.
public Verify ( Stream fileStream, string expectedSha256 ) : bool
fileStream Stream The FileStream.
expectedSha256 string The ExpectedSha256Hash.
return bool

Verify() public method

Checks whether the content file is modified.
public Verify ( string contentPath, string expectedSha256 ) : bool
contentPath string The ContentPath.
expectedSha256 string The ExpectedSha256Hash.
return bool