23 lines
552 B
C#
23 lines
552 B
C#
![]() |
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
using Lidgren.Network;
|
||
|
using System.Threading;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|