Net Encryption Library
GetFileCRC32Hex Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GetFileCRC32Hex Method
The file path.
Gets the CRC32 checksum in hexadecimal for the passed in file.
Syntax
'Declaration
 
Public Function GetFileCRC32Hex( _
   ByVal filePath As System.String _
) As System.String
'Usage
 
Dim instance As Encryption
Dim filePath As System.String
Dim value As System.String
 
value = instance.GetFileCRC32Hex(filePath)
public System.string GetFileCRC32Hex( 
   System.string filePath
)
public function GetFileCRC32Hex( 
    filePath: System.String
): System.String; 
public function GetFileCRC32Hex( 
   filePath : System.String
) : System.String;
public: System.string* GetFileCRC32Hex( 
   System.string* filePath
) 
public:
System.String^ GetFileCRC32Hex( 
   System.String^ filePath
) 

Parameters

filePath
The file path.

Return Value

System.String.
Example
Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
File.WriteAllText("input.txt", "This is a test");
 
string results = encryption.GetFileCRC32Hex("input.txt");
 
Console.WriteLine(results);
Dim encryption As New Encryption() 'Trial Mode
'Dim encryption As New Encryption("place user name here", "place license key here") 'License Mode
 
File.WriteAllText("input.txt", "This is a test")
 
Dim results As String = encryption.GetFileCRC32Hex("input.txt")
 
Console.WriteLine(results)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members