wip: JWT
This commit is contained in:
5
RsaKeyLoader/Class1.cs
Normal file
5
RsaKeyLoader/Class1.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace RsaKeyLoader;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
13
RsaKeyLoader/KeyLoader.cs
Normal file
13
RsaKeyLoader/KeyLoader.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace RsaKeyLoader;
|
||||
|
||||
public class KeyLoader
|
||||
{
|
||||
public void Generate(string path)
|
||||
{
|
||||
var rsaKey = RSA.Create();
|
||||
var privateKey = rsaKey.ExportRSAPrivateKey();
|
||||
File.WriteAllBytes(path, privateKey);
|
||||
}
|
||||
}
|
||||
9
RsaKeyLoader/RsaKeyLoader.csproj
Normal file
9
RsaKeyLoader/RsaKeyLoader.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user