Files
stevanfreeborn.secureconfig/tests/StevanFreeborn.Extensions.Configuration.Secure.Tests/Common/KeyGenerator.cs
T
Stevan Freeborn a8b2ec0784 tests: add integration tests
- refactored to use temp directory helper class
- consolidated test key generation to helper class
2026-04-02 20:31:06 -05:00

13 lines
303 B
C#

using System.Security.Cryptography;
namespace StevanFreeborn.Extensions.Configuration.Secure.Tests.Common;
internal static class KeyGenerator
{
public static string GetValidBase64Key()
{
var key = new byte[32];
RandomNumberGenerator.Fill(key);
return Convert.ToBase64String(key);
}
}