Skip to content

SealKdf

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public record SealKdf

How the passphrase was stretched into a key.

Constructors

SealKdf(string, int, string)

public SealKdf(string Algorithm, int Iterations, string Salt);

Parameters

  • Algorithm (string) - The KDF name, for a reader that must refuse one it does not implement.
  • Iterations (int) - The PBKDF2 iteration count this file was written with. Recorded rather than assumed, so raising the default later does not make every existing seal unreadable.
  • Salt (string) - The per-file salt, hex. Public by design: a salt defeats precomputation, it is not a secret.

Properties

Algorithm

public string Algorithm { get; init; }

The KDF name, for a reader that must refuse one it does not implement.

Iterations

public int Iterations { get; init; }

The PBKDF2 iteration count this file was written with. Recorded rather than assumed, so raising the default later does not make every existing seal unreadable.

Salt

public string Salt { get; init; }

The per-file salt, hex. Public by design: a salt defeats precomputation, it is not a secret.