You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -18,7 +18,7 @@ service, where the service provides users with access to any substantial set of
18
18
the features or functionality of the software.
19
19
20
20
* You may not move, change, disable, or circumvent the license key functionality
21
-
in the software, and you may not remove or obscure any functionality in the
21
+
to the software, and you may not remove or obscure any functionality in the
22
22
software that is protected by the license key.
23
23
24
24
* You may not alter, remove, or obscure any licensing, copyright, or other notices
@@ -31,4 +31,5 @@ Thank you for your compliance, we work hard on the development of KeyAuth and do
31
31
32
32
KeyAuth is a powerful cloud-based authentication system designed to protect your software from piracy and unauthorized access. With KeyAuth, you can implement secure licensing, user management, and subscription systems in minutes. Client SDKs available for [C#](https://github.com/KeyAuth/KeyAuth-CSHARP-Example), [C++](https://github.com/KeyAuth/KeyAuth-CPP-Example), [Python](https://github.com/KeyAuth/KeyAuth-Python-Example), [Java](https://github.com/KeyAuth-Archive/KeyAuth-JAVA-api), [JavaScript](https://github.com/mazkdevf/KeyAuth-JS-Example), [VB.NET](https://github.com/KeyAuth/KeyAuth-VB-Example), [PHP](https://github.com/KeyAuth/KeyAuth-PHP-Example), [Rust](https://github.com/KeyAuth/KeyAuth-Rust-Example), [Go](https://github.com/mazkdevf/KeyAuth-Go-Example), [Lua](https://github.com/mazkdevf/KeyAuth-Lua-Examples), [Ruby](https://github.com/mazkdevf/KeyAuth-Ruby-Example), and [Perl](https://github.com/mazkdevf/KeyAuth-Perl-Example). KeyAuth has several unique features such as memory streaming, webhook function where you can send requests to API without leaking the API, discord webhook notifications, ban the user securely through the application at your discretion. Feel free to join https://t.me/keyauth if you have questions or suggestions.
33
33
34
-
Looking for a Discord bot made by the KeyAuth & RestoreCord founder that you can use to backup your Discord members, server settings, and messages? Go to https://vaultcord.com
34
+
## API Version (Default)
35
+
This library now defaults to API **1.3**. If you need older versions, disable default features and enable `v1_2`, `v1_1`, or `v1_0` explicitly.
Copy file name to clipboardExpand all lines: src/lib.rs
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,32 @@ unofficial [keyauth](https://keyauth.cc) library that implements all versions of
3
3
to make an api version available use the feature flag for that version.
4
4
example
5
5
```toml
6
-
keyauth = { version = "*" } # this will enable 1.2 api version (default)
6
+
keyauth = { version = "*" } # this will enable 1.3 api version (default)
7
7
```
8
-
by default the 1.2 api is enabled because it is most commonly used. so if you dont want the 1.2 api you have to disable it.
8
+
by default the 1.3 api is enabled because it is most commonly used. so if you dont want the 1.3 api you have to disable it.
9
9
```toml
10
-
keyauth = { version = "*", features = ["v1_1", "seller"], default-features = false } # this will enable 1.1 and seller api
10
+
keyauth = { version = "*", features = ["v1_2", "v1_1", "seller"], default-features = false } # this will enable 1.2, 1.1 and seller api
11
11
```
12
-
the ``default-features = false`` disabled the default v1_2 api.
12
+
the ``default-features = false`` disabled the default v1_3 api.
13
13
14
14
basic usage:
15
-
```rust
16
-
let mut auth = keyauth::v1_2::KeyauthApi::new("application name", "ownerid", "application secret", "application version", "api url"); // if you dont have a custom domain for api use "https://keyauth.win/api/1.2/"
15
+
```no_run
16
+
use keyauth::v1_3::KeyauthApi;
17
+
18
+
let mut auth = KeyauthApi::new(
19
+
"application name",
20
+
"ownerid",
21
+
"application secret",
22
+
"application version",
23
+
"https://keyauth.win/api/1.3/",
24
+
); // if you dont have a custom domain for api use "https://keyauth.win/api/1.3/"
17
25
auth.init(None).unwrap(); // None -> no hash set, Some("hash") -> if you have has checking enabled
18
-
auth.login("username".to_string(), "password".to_string(), Some("hwid".to_string())).unwrap(); // if you want to automaticly generate hwid use None insted of Some(...)
26
+
auth.login(
27
+
"username".to_string(),
28
+
"password".to_string(),
29
+
Some("hwid".to_string()),
30
+
)
31
+
.unwrap(); // if you want to automaticly generate hwid use None insted of Some(...)
19
32
```
20
33
21
34
also if you want to use an obfuscator for rust i recommend using [obfstr](https://crates.io/crates/obfstr) and [llvm obfuscator](https://github.com/eshard/obfuscator-llvm/wiki/Rust-obfuscation-guide)
0 commit comments