feat: implement machine key provider

- implement logic for hashing machine key
- extracted interfaces
This commit is contained in:
Stevan Freeborn
2026-03-31 07:15:03 -05:00
parent e05e959378
commit 2915c32274
5 changed files with 98 additions and 7 deletions
@@ -5,11 +5,6 @@ using Microsoft.Extensions.Logging;
namespace StevanFreeborn.Extensions.Configuration.Secure.Cryptography;
internal interface IMachineIdKeyGenerator
{
string GetId();
}
internal sealed class MachineIdKeyGenerator : IMachineIdKeyGenerator
{
private const string IOPlatformUUID = nameof(IOPlatformUUID);
@@ -111,4 +106,4 @@ internal static partial class LogMessages
Message = "Using fallback strategy for Machine ID generation."
)]
public static partial void LogUsingFallbackStrategy(this ILogger logger);
}
}