Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
URL encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Makk5 authored Jan 4, 2021
1 parent 41ffdf5 commit c1d93ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ size_t writeFunction(void* ptr, size_t size, size_t nmemb, std::string* data) {

nlohmann::json GetLoadoutFromAPI(std::string AccountName)
{
std::string URLBase = "https://api.riftfn.xyz/fortnite/api/game/v2/internal/profile/";
std::string URL = URLBase.append(AccountName);
auto URLBaseEncrypted = skCrypt("https://api.riftfn.xyz/fortnite/api/game/v2/internal/profile/");
std::string URLBaseDecrypted = URLBaseEncrypted.decrypt();
std::string URL = URLBaseDecrypted.append(AccountName);
URLBaseEncrypted.clear();

curl_global_init(CURL_GLOBAL_DEFAULT);
auto curl = curl_easy_init();
Expand Down

0 comments on commit c1d93ee

Please sign in to comment.