Files
RAGECOOP-V/Core/Networking/PublicKey.cs
2022-10-15 11:51:18 +08:00

23 lines
492 B
C#

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