Net Encryption Library
GetFileAdler32 Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GetFileAdler32 Method
Get an Adler 32 Checksum for a file
Syntax
'Declaration
 
Public Function GetFileAdler32( _
   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.GetFileAdler32(filePath)
public System.long GetFileAdler32( 
   System.string filePath
)
public function GetFileAdler32( 
    filePath: System.String
): System.Int64; 
public function GetFileAdler32( 
   filePath : System.String
) : System.long;
public: System.long GetFileAdler32( 
   System.string* filePath
) 
public:
System.int64 GetFileAdler32( 
   System.String^ filePath
) 

Parameters

filePath

Return Value

Adler CRC
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.GetFileAdler32("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.GetFileAdler32("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