Class EncryptionSummary
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F199 (browse mode): the "encrypted" badge and info panel for an archive, read from the listing without a password (T-F202: nothing showed the archive was encrypted until a password was asked for).
public sealed record EncryptionSummary : IEquatable<EncryptionSummary>
- Inheritance
-
EncryptionSummary
- Implements
- Inherited Members
Constructors
EncryptionSummary(int, int, EntryEncryption?, bool, bool)
T-F199 (browse mode): the "encrypted" badge and info panel for an archive, read from the listing without a password (T-F202: nothing showed the archive was encrypted until a password was asked for).
public EncryptionSummary(int EncryptedFiles, int TotalFiles, EntryEncryption? Badge, bool HasAe2, bool HasZipCrypto = false)
Parameters
EncryptedFilesintFiles that are encrypted.
TotalFilesintFiles in the archive (folders excluded).
BadgeEntryEncryption?The weakest method present — the claim that holds for every encrypted file — or null when nothing is encrypted or the format cannot say.
HasAe2boolAn AES entry is AE-2: its CRC-32 column is empty on purpose (the HMAC authenticates it).
HasZipCryptoboolAn entry uses ZipCrypto, which is weak, even when an unnamed method ranks the badge lower.
Properties
Badge
The weakest method present — the claim that holds for every encrypted file — or null when nothing is encrypted or the format cannot say.
public EntryEncryption? Badge { get; init; }
Property Value
BadgeName
The badge's method name ("AES-256", "ZipCrypto"); null for an unnamed method or none.
public string? BadgeName { get; }
Property Value
EncryptedFiles
Files that are encrypted.
public int EncryptedFiles { get; init; }
Property Value
HasAe2
An AES entry is AE-2: its CRC-32 column is empty on purpose (the HMAC authenticates it).
public bool HasAe2 { get; init; }
Property Value
HasZipCrypto
An entry uses ZipCrypto, which is weak, even when an unnamed method ranks the badge lower.
public bool HasZipCrypto { get; init; }
Property Value
IsEncrypted
True when the badge and info panel show.
public bool IsEncrypted { get; }
Property Value
NoteKeys
Resource keys of the info panel's notes, in display order.
public IReadOnlyList<string> NoteKeys { get; }
Property Value
TotalFiles
Files in the archive (folders excluded).
public int TotalFiles { get; init; }
Property Value
Methods
Of(IReadOnlyList<ArchiveEntryInfo>)
Summarizes a listing.
public static EncryptionSummary Of(IReadOnlyList<ArchiveEntryInfo> entries)
Parameters
entriesIReadOnlyList<ArchiveEntryInfo>