Files
RAGECOOP-V/Core/Networking/PublicKey.cs
sardelka9515 2828b9b74f Clean up
2022-10-23 19:02:39 +08:00

19 lines
444 B
C#

using System;
namespace RageCoop.Core
{
internal class PublicKey
{
public byte[] Exponent;
public byte[] Modulus;
public static PublicKey FromServerInfo(ServerInfo info)
{
return new PublicKey
{
Modulus = Convert.FromBase64String(info.publicKeyModulus),
Exponent = Convert.FromBase64String(info.publicKeyExponent)
};
}
}
}