[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, and Windows XP. Instead, use the HashAlgorithm Class in the System.Security.Cryptography namespace.]
The Algorithm property sets or retrieves the type of hashing algorithm used.
Syntax
HashedData.Algorithm As CAPICOM_HASH_ALGORITHM
Property value
A value of the CAPICOM_HASH_ALGORITHM enumeration that defines a hash algorithm. The default value is CAPICOM_HASH_ALGORITHM_SHA1. The following table shows the possible values.
| Value | Meaning |
|---|---|
| CAPICOM_HASH_ALGORITHM_SHA1 | SHA1 hashing algorithm. |
| CAPICOM_HASH_ALGORITHM_MD2 | MD2 hashing algorithm. |
| CAPICOM_HASH_ALGORITHM_MD4 | MD4 hashing algorithm. |
| CAPICOM_HASH_ALGORITHM_MD5 | MD5 hashing algorithm. |
| CAPICOM_HASH_ALGORITHM_SHA_256 | SHA-256 hash algorithm. CAPICOM 2.0.0.3 and earlier: This value is not supported. |
| CAPICOM_HASH_ALGORITHM_SHA_384 | SHA-384 hash algorithm. CAPICOM 2.0.0.3 and earlier: This value is not supported. |
| CAPICOM_HASH_ALGORITHM_SHA_512 | SHA-512 hash algorithm. CAPICOM 2.0.0.3 and earlier: This value is not supported. |
Requirements
| Requirement | Value |
|---|---|
| End of client support | Windows Vista |
| End of server support | Windows Server 2008 |
| Redistributable | CAPICOM 2.0 or later on Windows Server 2003 and Windows XP |
| DLL | Capicom.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
