Net Encryption Library
GetFileCRC32 Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GetFileCRC32 Method
Get a 32 bit Cyclic Redundency Check for a file
Syntax
'Declaration
 
Public Function GetFileCRC32( _
   ByVal filePath As System.String _
) As System.Long
'Usage
 
Dim instance As Encryption
Dim filePath As System.String
Dim value As System.Long
 
value = instance.GetFileCRC32(filePath)
public System.long GetFileCRC32( 
   System.string filePath
)
public function GetFileCRC32( 
    filePath: System.String
): System.Int64; 
public function GetFileCRC32( 
   filePath : System.String
) : System.long;
public: System.long GetFileCRC32( 
   System.string* filePath
) 
public:
System.int64 GetFileCRC32( 
   System.String^ filePath
) 

Parameters

filePath
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");
 
long results = encryption.GetFileCRC32("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 Long = encryption.GetFileCRC32("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