Skip to content

Commit

Permalink
Merge pull request #61 from Shxde1/main
Browse files Browse the repository at this point in the history
x86 example, token feature, redaction
  • Loading branch information
Its-Networking authored Apr 18, 2024
2 parents af81105 + 088d516 commit de228e1
Show file tree
Hide file tree
Showing 80 changed files with 59,170 additions and 12 deletions.
4 changes: 2 additions & 2 deletions auth.hpp → x64/auth.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ namespace KeyAuth {
class api {
public:

std::string name, ownerid, secret, version, url;
std::string name, ownerid, secret, version, url, path;

api(std::string name, std::string ownerid, std::string secret, std::string version, std::string url) : name(name), ownerid(ownerid), secret(secret), version(version), url(url) {}
api(std::string name, std::string ownerid, std::string secret, std::string version, std::string url, std::string path) : name(name), ownerid(ownerid), secret(secret), version(version), url(url), path(path) {}

void ban(std::string reason = "");
void init();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions example.vcxproj.user → x64/example.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ShowAllFiles>true</ShowAllFiles>
</PropertyGroup>
</Project>
File renamed without changes.
File renamed without changes.
Binary file renamed library_x64.lib → x64/library_x64.lib
Binary file not shown.
15 changes: 8 additions & 7 deletions main.cpp → x64/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ const std::string compilation_time = (std::string)skCrypt(__TIME__);

using namespace KeyAuth;

auto name = skCrypt(""); // application name. right above the blurred text aka the secret on the licenses tab among other tabs
auto ownerid = skCrypt(""); // ownerid, found in account settings. click your profile picture on top right of dashboard and then account settings.
auto secret = skCrypt(""); // app secret, the blurred text on licenses tab and other tabs
auto version = skCrypt("1.0"); // leave alone unless you've changed version on website
auto url = skCrypt("https://keyauth.win/api/1.2/"); // change if you're self-hosting

api KeyAuthApp(name.decrypt(), ownerid.decrypt(), secret.decrypt(), version.decrypt(), url.decrypt());
std::string name = skCrypt("name").decrypt();
std::string ownerid = skCrypt("ownerid").decrypt();
std::string secret = skCrypt("secret").decrypt();
std::string version = skCrypt("1.0").decrypt();
std::string url = skCrypt("https://keyauth.win/api/1.2/").decrypt(); // change if you're self-hosting
std::string path = skCrypt("path (optional)").decrypt();

api KeyAuthApp(name, ownerid, secret, version, url, path);

int main()
{
Expand Down
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions x86/example.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example", "example.vcxproj", "{3E584710-D844-49E5-9938-B4EFA4928B17}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3E584710-D844-49E5-9938-B4EFA4928B17}.Debug|x64.ActiveCfg = Debug|x64
{3E584710-D844-49E5-9938-B4EFA4928B17}.Debug|x64.Build.0 = Debug|x64
{3E584710-D844-49E5-9938-B4EFA4928B17}.Debug|x86.ActiveCfg = Debug|Win32
{3E584710-D844-49E5-9938-B4EFA4928B17}.Debug|x86.Build.0 = Debug|Win32
{3E584710-D844-49E5-9938-B4EFA4928B17}.Release|x64.ActiveCfg = Release|x64
{3E584710-D844-49E5-9938-B4EFA4928B17}.Release|x64.Build.0 = Release|x64
{3E584710-D844-49E5-9938-B4EFA4928B17}.Release|x86.ActiveCfg = Release|Win32
{3E584710-D844-49E5-9938-B4EFA4928B17}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9EE66AFE-8CA5-4A35-9001-B4A57E4493E3}
EndGlobalSection
EndGlobal
221 changes: 221 additions & 0 deletions x86/example.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{3e584710-d844-49e5-9938-b4efa4928b17}</ProjectGuid>
<RootNamespace>example</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>./lib/nlohmann;./lib/curl;./lib;.\;$(IncludePath)</IncludePath>
<LibraryPath>./lib/curl;.\;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>./lib;./lib/nlohmann;./lib/curl;.\;$(IncludePath)</IncludePath>
<LibraryPath>.\;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>CURL_STATICLIB;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>libcurl.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>false</GenerateDebugInformation>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="lib\auth.cpp" />
<ClCompile Include="lib\hmac_sha256.c" />
<ClCompile Include="lib\sha256.c" />
<ClCompile Include="lib\utils.cpp" />
<ClCompile Include="main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="lib\auth.hpp" />
<ClInclude Include="lib\curl\curl.h" />
<ClInclude Include="lib\curl\curlver.h" />
<ClInclude Include="lib\curl\easy.h" />
<ClInclude Include="lib\curl\mprintf.h" />
<ClInclude Include="lib\curl\multi.h" />
<ClInclude Include="lib\curl\stdcheaders.h" />
<ClInclude Include="lib\curl\system.h" />
<ClInclude Include="lib\curl\typecheck-gcc.h" />
<ClInclude Include="lib\curl\urlapi.h" />
<ClInclude Include="lib\hmac_sha256.h" />
<ClInclude Include="lib\includes.hpp" />
<ClInclude Include="lib\nlohmann\adl_serializer.hpp" />
<ClInclude Include="lib\nlohmann\byte_container_with_subtype.hpp" />
<ClInclude Include="lib\nlohmann\detail\conversions\from_json.hpp" />
<ClInclude Include="lib\nlohmann\detail\conversions\to_chars.hpp" />
<ClInclude Include="lib\nlohmann\detail\conversions\to_json.hpp" />
<ClInclude Include="lib\nlohmann\detail\exceptions.hpp" />
<ClInclude Include="lib\nlohmann\detail\hash.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\binary_reader.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\input_adapters.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\json_sax.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\lexer.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\parser.hpp" />
<ClInclude Include="lib\nlohmann\detail\input\position_t.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\internal_iterator.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\iteration_proxy.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\iterator_traits.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\iter_impl.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\json_reverse_iterator.hpp" />
<ClInclude Include="lib\nlohmann\detail\iterators\primitive_iterator.hpp" />
<ClInclude Include="lib\nlohmann\detail\json_pointer.hpp" />
<ClInclude Include="lib\nlohmann\detail\json_ref.hpp" />
<ClInclude Include="lib\nlohmann\detail\macro_scope.hpp" />
<ClInclude Include="lib\nlohmann\detail\macro_unscope.hpp" />
<ClInclude Include="lib\nlohmann\detail\meta\cpp_future.hpp" />
<ClInclude Include="lib\nlohmann\detail\meta\detected.hpp" />
<ClInclude Include="lib\nlohmann\detail\meta\is_sax.hpp" />
<ClInclude Include="lib\nlohmann\detail\meta\type_traits.hpp" />
<ClInclude Include="lib\nlohmann\detail\meta\void_t.hpp" />
<ClInclude Include="lib\nlohmann\detail\output\binary_writer.hpp" />
<ClInclude Include="lib\nlohmann\detail\output\output_adapters.hpp" />
<ClInclude Include="lib\nlohmann\detail\output\serializer.hpp" />
<ClInclude Include="lib\nlohmann\detail\value_t.hpp" />
<ClInclude Include="lib\nlohmann\json.hpp" />
<ClInclude Include="lib\nlohmann\json_fwd.hpp" />
<ClInclude Include="lib\nlohmann\ordered_map.hpp" />
<ClInclude Include="lib\nlohmann\thirdparty\hedley\hedley.hpp" />
<ClInclude Include="lib\nlohmann\thirdparty\hedley\hedley_undef.hpp" />
<ClInclude Include="lib\Security.hpp" />
<ClInclude Include="lib\sha256.h" />
<ClInclude Include="lib\utils.hpp" />
<ClInclude Include="lib\xorstr.hpp" />
<ClInclude Include="skStr.h" />
</ItemGroup>
<ItemGroup>
<Library Include="lib\curl\libcurl.lib" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
Loading

0 comments on commit de228e1

Please sign in to comment.