Net Encryption Library
GetStreamAdler32Hex Method
Example 






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

Parameters

value
The stream.

Return Value

The 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;
 
using (FileStream stream = new FileStream("input.txt",FileMode.Open,FileAccess.Read))
    results = encryption.GetStreamAdler32Hex(stream);
 
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
 
Using stream As New FileStream("input.txt",FileMode.Open,FileAccess.Read)
    results = encryption.GetStreamAdler32Hex(stream)
End Using
 
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