Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.2 KB
Raw Blame
//-----------------------------------------------------------------------
// <copyright file="UserSrpCredentials.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------

namespace AliasServerDb;

/// <summary>
/// The SRP credentials and KEK derivation parameters that one unlock method authenticates with.
/// </summary>
/// <param name="Salt">The SRP salt.</param>
/// <param name="Verifier">The SRP verifier the server checks a client's proof against.</param>
/// <param name="EncryptionType">How the client derives the SRP input from the password: Argon2IdHkdf, or legacy Argon2Id.</param>
/// <param name="EncryptionSettings">The parameters belonging to the KDF named by <paramref name="EncryptionType"/>.</param>
/// <param name="UnlockMethodId">The <see cref="UserUnlockMethod"/> these credentials came from, or null for a legacy user whose credentials still live on the vault manifest.</param>
public sealed record UserSrpCredentials(string Salt, string Verifier, string EncryptionType, string EncryptionSettings, Guid? UnlockMethodId = null);