2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-04 12:28:21 +00:00
This commit is contained in:
2026-04-04 04:31:30 +03:00
parent 1339604bc5
commit 5f73cf7af7
298 changed files with 100 additions and 501 deletions

View File

@@ -6,8 +6,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Esiur.Security.Cryptography\Esiur.Security.Cryptography.csproj" />
<ProjectReference Include="..\..\Esiur\Esiur.csproj" OutputItemType="Analyzer" />
<ProjectReference Include="..\..\..\Libraries\Esiur\Esiur.csproj" OutputItemType="Analyzer" />
</ItemGroup>
</Project>

View File

@@ -115,17 +115,17 @@ class Program
var a = new ECDH();
var b = new ECDH();
//var a = new ECDH();
//var b = new ECDH();
var apk = a.GetPublicKey();
var bpk = b.GetPublicKey();
//var apk = a.GetPublicKey();
//var bpk = b.GetPublicKey();
var ska = a.ComputeSharedKey(bpk);
var skb = b.ComputeSharedKey(apk);
//var ska = a.ComputeSharedKey(bpk);
//var skb = b.ComputeSharedKey(apk);
Console.WriteLine(ska.ToHex());
Console.WriteLine(skb.ToHex());
//Console.WriteLine(ska.ToHex());
//Console.WriteLine(skb.ToHex());
//// Simple membership provider
//var membership = new SimpleMembership() { GuestsAllowed = true };