PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Version: 19.0
Your version: XXA15005

WinDevWebDev - Server codeWebDev - Browser codeWinDev MobileReports and QueriesWindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPadJavaPHPAjaxUser code (UMC)External languageHFSQLHFSQL Client/ServerStored proceduresHyper File 5.5OLE DBODBCNative Accesses

Hash functions

Overview
The hashing is used to summarize a file or a character string. This summary is called Hash. A single "hash" can be associated with a text in everyday language: when the initial text is modified, the corresponding hash is also modified.

The hashing is mainly used to:

  • check the integrity of a document when it is transmitted (the document is transmitted with the result of the hash).
  • electronically sign a document (by encoding the result of the hash with a key for instance).

Hash functions
The hash functions are as follows:

HashCheckFileChecks the Hash of a file for a specific type of algorithm.
HashCheckStringChecks the Hash of a character string for a specific type of algorithm.
HashFileCalculates the Hash of a file according to a specific algorithm.
HashStringCalculates the Hash of a character string according to a specific algorithm.

These functions are used to manage a simple hash as well as a hash with message authentication.
Related Examples:
Hash functions Unit example (WinDev): Hash functions
[ + ] Using the Hashing functions

This example presents the use of the hashing functions.
The HashFile and HashString functions are used to calculate a Hash key for a string or for a file.
This Hash key is used to:
- Check whether the file is consistent after a transfer for example
- Search for file duplicates
-...
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment