Class library for Cracked.to's official authentication system written in C# - https://cracked.to/auth.php
Build solution, install Newtonsoft.Json and System.Management packages and import DLL into your project.
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. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.