SecretFileHeader
Namespace: Meshmakers.Octo.Runtime.Contracts.Secrets
The clear-text header of an encrypted secret file (format OCTOENC1). Reading it needs no key.
public record SecretFileHeader : IEquatable<SecretFileHeader>
Inheritance Object → SecretFileHeader
Implements IEquatable<SecretFileHeader>
Properties
Version
Format version (currently 1)
public int Version { get; set; }
Property Value
KeyId
Key id of the key ring entry the file key is wrapped with
public string KeyId { get; set; }
Property Value
CreatedAt
UTC time the file was encrypted (millisecond precision)
public DateTime CreatedAt { get; set; }
Property Value
ChunkSize
Plaintext bytes per chunk
public int ChunkSize { get; set; }
Property Value
HeaderLength
Length of the header in bytes; the first chunk starts at this offset
public int HeaderLength { get; set; }
Property Value
Constructors
SecretFileHeader(Int32, String, DateTime, Int32, Int32)
The clear-text header of an encrypted secret file (format OCTOENC1). Reading it needs no key.
public SecretFileHeader(int Version, string KeyId, DateTime CreatedAt, int ChunkSize, int HeaderLength)
Parameters
Version Int32
Format version (currently 1)
KeyId String
Key id of the key ring entry the file key is wrapped with
CreatedAt DateTime
UTC time the file was encrypted (millisecond precision)
ChunkSize Int32
Plaintext bytes per chunk
HeaderLength Int32
Length of the header in bytes; the first chunk starts at this offset