Net Encryption Library
GetFileAdler32Hex Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GetFileAdler32Hex Method
The file path.
Gets adler32 checksum for a file in hexadecimal.
Syntax
'Declaration
 
Public Function GetFileAdler32Hex( _
   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.GetFileAdler32Hex(filePath)
public System.string GetFileAdler32Hex( 
   System.string filePath
)
public function GetFileAdler32Hex( 
    filePath: System.String
): System.String; 
public function GetFileAdler32Hex( 
   filePath : System.String
) : System.String;
public: System.string* GetFileAdler32Hex( 
   System.string* filePath
) 
public:
System.String^ GetFileAdler32Hex( 
   System.String^ filePath
) 

Parameters

filePath
The file path.

Return Value

Checksum in hexadecimal
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.GetFileAdler32Hex("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.GetFileAdler32Hex("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