mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 07:56:26 +00:00
- async tcp buffer - two way encryption on connect - map security fix - DNS Lookup on connect - fixed bug in beamng security
16 lines
379 B
C++
16 lines
379 B
C++
///
|
|
/// Created by Anonymous275 on 7/16/2020
|
|
///
|
|
#pragma once
|
|
#include <string>
|
|
#include "Xor.h"
|
|
struct RSA{
|
|
int n = 0;
|
|
int e = 0;
|
|
int d = 0;
|
|
};
|
|
std::string RSA_D(const std::string& Data,int d, int n);
|
|
std::string RSA_E(const std::string& Data,int e, int n);
|
|
std::string LocalEnc(const std::string& Data);
|
|
std::string LocalDec(const std::string& Data);
|
|
RSA* GenKey(); |