Table of Contents

BiffFilePassRecord Struct

Definition

Namespace
Bodu.IO.Biff
Assembly
Bodu.IO.Biff.dll
Package
Bodu.IO.Biff 1.0.0
Source
BiffFilePassRecord.cs

Represents a decoded FILEPASS record: the protection scheme applied to the records that follow it. The codec reports the scheme and the XOR parameters; it does not decrypt.

public readonly struct BiffFilePassRecord : IEquatable<BiffFilePassRecord>
Implements
Inherited Members
Extension Methods

Remarks

BIFF5 carries only the XOR key and hash. BIFF8 prefixes a type word: zero selects the same XOR pair, one selects RC4, whose header the codec leaves uninterpreted.

Constructors

BiffFilePassRecord(BiffEncryptionType, ushort, ushort)

Represents a decoded FILEPASS record: the protection scheme applied to the records that follow it. The codec reports the scheme and the XOR parameters; it does not decrypt.

public BiffFilePassRecord(BiffEncryptionType EncryptionType, ushort XorKey, ushort XorHash)

Parameters

EncryptionType BiffEncryptionType

The protection scheme.

XorKey ushort

The XOR obfuscation key; zero for RC4.

XorHash ushort

The XOR password verifier; zero for RC4.

Remarks

BIFF5 carries only the XOR key and hash. BIFF8 prefixes a type word: zero selects the same XOR pair, one selects RC4, whose header the codec leaves uninterpreted.

See Also

Properties

EncryptionType

The protection scheme.

public BiffEncryptionType EncryptionType { get; init; }

Property Value

BiffEncryptionType

XorHash

The XOR password verifier; zero for RC4.

public ushort XorHash { get; init; }

Property Value

ushort

XorKey

The XOR obfuscation key; zero for RC4.

public ushort XorKey { get; init; }

Property Value

ushort

Methods

Deconstruct(out BiffEncryptionType, out ushort, out ushort)

public void Deconstruct(out BiffEncryptionType EncryptionType, out ushort XorKey, out ushort XorHash)

Parameters

EncryptionType BiffEncryptionType
XorKey ushort
XorHash ushort

Equals(BiffFilePassRecord)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BiffFilePassRecord other)

Parameters

other BiffFilePassRecord

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(BiffFilePassRecord, BiffFilePassRecord)

public static bool operator ==(BiffFilePassRecord left, BiffFilePassRecord right)

Parameters

left BiffFilePassRecord
right BiffFilePassRecord

Returns

bool

operator !=(BiffFilePassRecord, BiffFilePassRecord)

public static bool operator !=(BiffFilePassRecord left, BiffFilePassRecord right)

Parameters

left BiffFilePassRecord
right BiffFilePassRecord

Returns

bool

Applies to

ProductVersions
.NET8, 10

See Also