Skip to main content

TdxSpreadSheetStrongProtectionInfo Class

A strong password protection algorithm provider for a worksheet and/or spreadsheet document.

Declaration

TdxSpreadSheetStrongProtectionInfo = class(
    TdxSpreadSheetCustomProtectionInfo
)

Remarks

The Spreadsheet and Report Designer controls provide support for the strong password worksheet and/or spreadsheet document protection when saving to/loading from the XLSX file format only.

The TdxSpreadSheetStrongProtectionInfo class extends its ancestor with members that can be used to:

  • Specify the hash calculation algorithm (HashAlgorithm);

  • Obtain the hash calculated for the protection password as an array of bytes (HashValue);

  • Specify the protection password hash value as a Unicode string (HashValueAsString);

  • Specify the cryptographic salt prepended to the protection password prior to hash generation (SaltValue);

  • Specify the cryptographic salt value as a Unicode string (SaltValueAsString);

  • Specify how many times the hashing function is iteratively run to calculate the hash value from the protection password (SpinCount).

Normally, the members introduced in the TdxSpreadSheetStrongProtectionInfo class, support the internal infrastructure and are not intended to be used directly from your code. For instance, the HashAlgorithm, HashValue, SaltValue, and SpinCount properties are initialized with when the class’ constructor is invoked.

Note

The protection password is assigned by passing it as the APassword parameter of the TdxSpreadSheetStrongProtectionInfo class’ constructor.

Inheritance

See Also