Setting up the SDK
Examples of Complete implementation
public static void LoginCheck() {
if(API.ValidLogin("user", "password")) {
LaunchApplication();
}
else {
ShowFailedLogin();
}
}
public sealed record UserLogin(string User, string Password);
// Check if login is valid using the CyphorSDK and the provided UserLogin object
// Note: UserLogin is not a required structure and can be adjusted to match any
// structure the customer's licensing uses
public static void LoginCheck() {
CyphorSDK.SignIn<UserLogin>(new UserLogin(user: "user", password: "password"));
}
// If the login is valid, launch the application
[CyphorSDK.AuthResult(Result = Authorization.Valid)]
public static void LaunchApplication(...) {
//
}
// If the login is invalid, show a failed login message
[CyphorSDK.AuthResult(Result = Authorization.Invalid)]
public static void ShowFailedLogin(...) {
//
}Partial implementation
FAQ
Does the SDK require any additional hardware or software to be installed?
Can the SDK detect and prevent tampering in real-time?
What stops attackers from removing the calls to the SDK?
Last updated