Skip to main content

Hashing Data in Cpp

TEAgent is the base class of TEAgentMatrix and TEAgentFile. Normally there is no need to work directly with this class. However, the method performHash() provided by TEAgent is convenient for hashing an array of strings. Hashing includes only two steps: set the data and hash it. Hashing does not require a connection to a key service. The following example demonstrates how to hash data using the TEAgent class.


Code Sample

See the C++ environment settings for details on setting the project environment.


cpp_agent_hash.cpp

The complete source for this sample, together with its console output, is published in the SDK reference and is the maintained copy:

cpp_agent_hash.cpp