BiffFilePassRecord Struct
Definition
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
EncryptionTypeBiffEncryptionTypeThe protection scheme.
XorKeyushortThe XOR obfuscation key; zero for RC4.
XorHashushortThe 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
XorHash
The XOR password verifier; zero for RC4.
public ushort XorHash { get; init; }
Property Value
XorKey
The XOR obfuscation key; zero for RC4.
public ushort XorKey { get; init; }
Property Value
Methods
Deconstruct(out BiffEncryptionType, out ushort, out ushort)
public void Deconstruct(out BiffEncryptionType EncryptionType, out ushort XorKey, out ushort XorHash)
Parameters
EncryptionTypeBiffEncryptionTypeXorKeyushortXorHashushort
Equals(BiffFilePassRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffFilePassRecord other)
Parameters
otherBiffFilePassRecordAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
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
leftBiffFilePassRecordrightBiffFilePassRecord
Returns
operator !=(BiffFilePassRecord, BiffFilePassRecord)
public static bool operator !=(BiffFilePassRecord left, BiffFilePassRecord right)
Parameters
leftBiffFilePassRecordrightBiffFilePassRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |