23 lines
492 B
C#
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;
|
|
}
|
|
}
|