OP 19 September, 2019 - 03:54 PM
(This post was last modified: 11 June, 2020 - 03:11 PM by Skryptec.)
Hello everyone,
I have seen a couple threads about people asking how to set up Cracked.to's authentication system on a C# application. For this reason, I created a class library in C# which is really easy to use.
https://github.com/Skryptific/Cracked.to-Authentication
Simply download the solution from GitHub, build the solution, install Newtonsoft.Json and System.Management packages and import DLL into your project.
Below is an example of how to authenticate:
Pull requests are welcome.
Yours sincerely,
Skryptec
I have seen a couple threads about people asking how to set up Cracked.to's authentication system on a C# application. For this reason, I created a class library in C# which is really easy to use.
https://github.com/Skryptific/Cracked.to-Authentication
Simply download the solution from GitHub, build the solution, install Newtonsoft.Json and System.Management packages and import DLL into your project.
Below is an example of how to authenticate:
Code:
using Cracked.to_Authentication;
using Cracked.to_Authentication.Models;
Console.WriteLine("Enter authentication key.");
string authKey = Console.ReadLine();
Auth auth = new Auth();
LoginResponse loginResponse = auth.Authenticate(authKey, "-1");
Console.WriteLine("Authenticated: " + loginResponse.isAuthenticated);
Console.ReadLine();
Pull requests are welcome.
Yours sincerely,
Skryptec