feat: implement machine key provider
- implement logic for hashing machine key - extracted interfaces
This commit is contained in:
+1
-6
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user