Implements file hashing media library scan job

This commit is contained in:
BinaryAlley committed 2025-03-01 16:44:10 +02:00
1 parent 66998055f0
commit 03a000e1e4
63 files changed
+2009 -287

No files matched your search

@@ -0,0 +1,22 @@
namespace Lumina.Application.Common.Infrastructure.Security;
/// <summary>
/// Interface for the service for hashing passwords.
/// </summary>
public interface IPasswordHashService
{
/// <summary>
/// Creates a hash from a string.
/// </summary>
/// <param name="password">The string to be hashed.</param>
/// <returns>The hashed string.</returns>
string HashString(string password);
/// <summary>
/// Verifies a password against a hash.
/// </summary>
/// <param name="password">The string to be checked.</param>
/// <param name="hashedPassword">The hashed representation of the string to be checked.</param>
/// <returns><see langword="true"/> if <paramref name="password"/> and the de-hashed versions of <paramref name="hashedPassword"/> are equal, <see langword="false"/> otherwise.</returns>
bool CheckStringAgainstHash(string password, string hashedPassword);
}