Walkthrough: Getting a Hash Value from Data
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
|The latest Enterprise Library information can be found at the Enterprise Library site.|
This walkthrough demonstrates how to use the Cryptography Application Block to obtain a hash for some text.
To reproduce the demonstration
- Declare the appropriate member variable and constants.
- Obtain the text from the user.
- Call the static CreateHash method of the Cryptographer class to obtain the hash, supplying the name of the configured hash provider to be used.