Hashing entirely in memory (C# example)
In This Topic
C# |
Copy Code |
XceedEncryptionLib.XceedHashing hasher = new XceedEncryptionLib.XceedHashingClass();
hasher.License( @"your license key" );
try { XceedEncryptionLib.XceedSHAHashingMethod sha = new XceedEncryptionLib.XceedSHAHashingMethodClass();
sha.HashSize = 256;
hasher.HashingMethod = sha;
object source = "This is the data to hash";
hasher.Hash( ref source, true );
object hash = sha.HashValue; } catch( System.Runtime.InteropServices.COMException except ) { MessageBox.Show( except.ToString() ); } |