Skip to main content

TdxSpreadSheetStrongProtectionInfo.HashAlgorithm Property

Specifies the hashing algorithm used by the strong password protection provider for a worksheet or the spreadsheet document structure.

Declaration

property HashAlgorithm: TdxHashAlgorithmType read; write;

Property Value

Type
TdxHashAlgorithmType

Remarks

Normally, this property supports the internal infrastructure and is not intended to be used directly from your code. The HashAlgorithm property is initialized with the TdxHashAlgorithmType.SHA256 value when a new instance of the TdxSpreadSheetStrongProtectionInfo class is created.

The full list of available options includes:

Value Description
None No hash value is calculated.
MD2 The MD2 (Message Digest 2) algorithm, defined by the RFC 1319 standard.
MD4 The MD4 (Message Digest 4) algorithm, defined by the RFC 1320 standard.
MD5 The MD5 (Message Digest 5) algorithm, defined by the RFC 1321 standard.
SHA1 The SHA-1 algorithm, defined by the ISO/IEC 10118-3:2004 standard.
MAC The MAC (message authentication code) algorithm, defined by the ISO/IEC 9797-1: 1999 standard.
Ripemd The RIPEMD-128 algorithm, defined by the ISO/IEC 10118-3:2004 standard.
Ripemd160 The RIPEMD-160 algorithm, defined by the ISO/IEC 10118-3:2004 standard.
HMAC The HMAC (hash-based authentication code) algorithm, defined by the RFC 2104 standard.
SHA256 The SHA-256 algorithm, defined by the ISO/IEC 10118-3:2004 standard.
SHA384 The SHA-384 algorithm, defined by the ISO/IEC 10118-3:2004 standard.
SHA512 The SHA-512 algorithm, defined by the ISO/IEC 10118-3:2004 standard.

Note

TdxHashAlgorithmType is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxHashAlgorithmType.SHA512 (in Delphi) or TdxHashAlgorithmType::SHA512 (in C++Builder) to refer to the SHA512 value in code.

See Also