Table of Contents

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

EncryptedFiles int

Files that are encrypted.

TotalFiles int

Files in the archive (folders excluded).

Badge EntryEncryption?

The weakest method present — the claim that holds for every encrypted file — or null when nothing is encrypted or the format cannot say.

HasAe2 bool

An AES entry is AE-2: its CRC-32 column is empty on purpose (the HMAC authenticates it).

HasZipCrypto bool

An 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

EntryEncryption?

BadgeName

The badge's method name ("AES-256", "ZipCrypto"); null for an unnamed method or none.

public string? BadgeName { get; }

Property Value

string

EncryptedFiles

Files that are encrypted.

public int EncryptedFiles { get; init; }

Property Value

int

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

bool

HasZipCrypto

An entry uses ZipCrypto, which is weak, even when an unnamed method ranks the badge lower.

public bool HasZipCrypto { get; init; }

Property Value

bool

IsEncrypted

True when the badge and info panel show.

public bool IsEncrypted { get; }

Property Value

bool

NoteKeys

Resource keys of the info panel's notes, in display order.

public IReadOnlyList<string> NoteKeys { get; }

Property Value

IReadOnlyList<string>

TotalFiles

Files in the archive (folders excluded).

public int TotalFiles { get; init; }

Property Value

int

Methods

Of(IReadOnlyList<ArchiveEntryInfo>)

Summarizes a listing.

public static EncryptionSummary Of(IReadOnlyList<ArchiveEntryInfo> entries)

Parameters

entries IReadOnlyList<ArchiveEntryInfo>

Returns

EncryptionSummary