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
Copy file name to clipboardExpand all lines: README.md
+28-22Lines changed: 28 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,23 @@
1
1
# KeyAuth-Python-Example
2
2
KeyAuth Python Example For The https://keyauth.cc Authentication system.
3
3
4
-
**What is KeyAuth?**
4
+
#### **Bugs**
5
5
6
-
KeyAuth is an Open source authentication system with cloud hosting plans as well. Client SDKs available for C++, C#, Python, Rust, PHP, JS, GO, Ruby and VB.NET. 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://discord.gg/keyauthIf you are experiencing account issues.
6
+
If the default example not added to your software isn't functioning how it should, please join the Discord server https://discord.gg/keyauthand submit the issue in the `#bugs` channel.
7
7
8
-
**Customer connection issues?**
8
+
However, we do **NOT** provide support for adding KeyAuth to your project. If you can't figure this out you should use Google or YouTube to learn more about the programming language you want to sell a program in.
9
+
10
+
#### **What is KeyAuth?**
11
+
12
+
KeyAuth is an Open source authentication system with cloud hosting plans as well. 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/SprayDown/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://discord.gg/keyauth if you have questions or suggestions.
13
+
14
+
#### **Customer connection issues?**
9
15
10
16
This is common amongst all authentication systems. Program obfuscation causes false positives in virus scanners, and with the scale of KeyAuth this is perceived as a malicious domain. So, `keyauth.com` and `keyauth.win` have been blocked by many internet providers. for dashbord, reseller panel, customer panel, use `keyauth.cc`
11
17
12
18
For API, `keyauth.cc` will not work because I purposefully blocked it on there so `keyauth.cc` doesn't get blocked also. So, you should create your own domain and follow this tutorial video https://www.youtube.com/watch?v=a2SROFJ0eYc. The tutorial video shows you how to create a domain name for 100% free if you don't want to purchase one.
13
19
14
-
**`KeyAuthApp` instance definition**
20
+
#### **`KeyAuthApp` instance definition**
15
21
16
22
Visit and select your application, then click on the **Python** tab
17
23
@@ -27,11 +33,11 @@ keyauthapp = api(
27
33
)
28
34
```
29
35
30
-
**Initialize application**
36
+
#### **Initialize application**
31
37
32
38
You don't need to add any code to initalize. KeyAuth will initalize when the instance definition is made.
Check if HWID or IP Address is blacklisted. You can add this if you want, just to make sure nobody can open your program for less than a second if they're blacklisted. Though, if you don't mind a blacklisted user having the program for a few seconds until they try to login and register, and you care about having the quickest program for your users, you shouldn't use this function then. If a blacklisted user tries to login/register, the KeyAuth server will check if they're blacklisted and deny entry if so. So the check blacklist function is just auxiliary function that's optional.
58
64
@@ -62,15 +68,15 @@ if keyauthapp.checkblacklist():
Users can use this function if their license key has never been used before, and if it has been used before. So if you plan to just allow users to use keys, you can remove the login and register functions from your code.
98
104
@@ -101,7 +107,7 @@ key = input('Enter your license: ')
A string that is kept on the server-side of KeyAuth. On the dashboard you can choose for each variable to be authenticated (only logged in users can access), or not authenticated (any user can access before login). These are global and static for all users, unlike User Variables which will be dicussed below this section.
145
151
@@ -149,7 +155,7 @@ data = keyauthapp.var("varName")
149
155
print(data)
150
156
```
151
157
152
-
**User Variables**
158
+
#### **User Variables**
153
159
154
160
User variables are strings kept on the server-side of KeyAuth. They are specific to users. They can be set on Dashboard in the Users tab, via SellerAPI, or via your loader using the code below. `discord` is the user variable name you fetch the user variable by. `test#0001` is the variable data you get when fetching the user variable.
155
161
@@ -166,7 +172,7 @@ data = keyauthapp.getvar("varName")
166
172
print(data)
167
173
```
168
174
169
-
**Application Logs**
175
+
#### **Application Logs**
170
176
171
177
Can be used to log data. Good for anti-debug alerts and maybe error debugging. If you set Discord webhook in the app settings of the Dashboard, it will send log messages to your Discord webhook rather than store them on site. It's recommended that you set Discord webhook, as logs on site may be deleted after a couple months of their creation.
172
178
@@ -177,7 +183,7 @@ You can use the log function before login & after login.
177
183
keyauthapp.log("Message")
178
184
```
179
185
180
-
**Ban the user**
186
+
#### **Ban the user**
181
187
182
188
Ban the user and blacklist their HWID and IP Address. Good function to call upon if you use anti-debug and have detected an intrusion attempt.
183
189
@@ -187,7 +193,7 @@ Function only works after login.
187
193
keyauthapp.ban()
188
194
```
189
195
190
-
**Server-sided webhooks**
196
+
#### **Server-sided webhooks**
191
197
192
198
Tutorial video https://www.youtube.com/watch?v=ENRaNPPYJbc
193
199
@@ -210,7 +216,7 @@ data = keyauthapp.webhook("7kR0UedlVI", "", "type=init&name=test&ownerid=j9Gj0FT
210
216
data = keyauthapp.webhook("7kR0UedlVI", "", "{\"content\": \"webhook message here\",\"embeds\": null}", "application/json")
211
217
```
212
218
213
-
**Download file**
219
+
#### **Download file**
214
220
215
221
Keep files secure by providing KeyAuth your file download link on the KeyAuth dashboard. Make sure this is a direct download link (as soon as you go to the link, it starts downloading without you clicking anything). The KeyAuth download function provides the bytes, and then you get to decide what to do with those. This example shows how to write it to a file named `text.txt` in the same folder as the program, though you could execute with RunPE or whatever you want.
216
222
@@ -224,7 +230,7 @@ f.write(bytes)
224
230
f.close()
225
231
```
226
232
227
-
**Chat channels**
233
+
#### **Chat channels**
228
234
229
235
Allow users to communicate amongst themselves in your program.
230
236
@@ -248,7 +254,7 @@ Example on how to send chat message.
0 commit comments