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
+53-35Lines changed: 53 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,55 @@
1
1
# KeyAuth-Python-Example
2
2
KeyAuth Python Example For The https://keyauth.cc Authentication system.
3
3
4
-
####**Bugs**
4
+
## **Bugs**
5
5
6
6
If the default example not added to your software isn't functioning how it should, please join the Discord server https://discord.gg/keyauth and submit the issue in the `#bugs` channel.
7
7
8
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
9
10
-
#### **What is KeyAuth?**
10
+
## Copyright License
11
+
12
+
KeyAuth is licensed under **Elastic License 2.0**
13
+
14
+
* You may not provide the software to third parties as a hosted or managed
15
+
service, where the service provides users with access to any substantial set of
16
+
the features or functionality of the software.
17
+
18
+
* You may not move, change, disable, or circumvent the license key functionality
19
+
in the software, and you may not remove or obscure any functionality in the
20
+
software that is protected by the license key.
21
+
22
+
* You may not alter, remove, or obscure any licensing, copyright, or other notices
23
+
of the licensor in the software. Any use of the licensor’s trademarks is subject
24
+
to applicable law.
25
+
26
+
Thank you for your compliance, we work hard on the development of KeyAuth and do not appreciate our copyright being infringed.
27
+
28
+
## **What is KeyAuth?**
11
29
12
30
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
31
14
-
####**Customer connection issues?**
32
+
## **Customer connection issues?**
15
33
16
34
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`
17
35
18
36
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.
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.
64
96
@@ -68,15 +100,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.
104
136
@@ -107,7 +139,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.
151
183
@@ -155,7 +187,7 @@ data = keyauthapp.var("varName")
155
187
print(data)
156
188
```
157
189
158
-
####**User Variables**
190
+
## **User Variables**
159
191
160
192
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.
161
193
@@ -172,7 +204,7 @@ data = keyauthapp.getvar("varName")
172
204
print(data)
173
205
```
174
206
175
-
####**Application Logs**
207
+
## **Application Logs**
176
208
177
209
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.
178
210
@@ -183,7 +215,7 @@ You can use the log function before login & after login.
183
215
keyauthapp.log("Message")
184
216
```
185
217
186
-
####**Ban the user**
218
+
## **Ban the user**
187
219
188
220
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.
189
221
@@ -193,7 +225,7 @@ Function only works after login.
193
225
keyauthapp.ban()
194
226
```
195
227
196
-
####**Server-sided webhooks**
228
+
## **Server-sided webhooks**
197
229
198
230
Tutorial video https://www.youtube.com/watch?v=ENRaNPPYJbc
199
231
@@ -216,7 +248,7 @@ data = keyauthapp.webhook("7kR0UedlVI", "", "type=init&name=test&ownerid=j9Gj0FT
216
248
data = keyauthapp.webhook("7kR0UedlVI", "", "{\"content\": \"webhook message here\",\"embeds\": null}", "application/json")
217
249
```
218
250
219
-
####**Download file**
251
+
## **Download file**
220
252
221
253
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.
222
254
@@ -230,7 +262,7 @@ f.write(bytes)
230
262
f.close()
231
263
```
232
264
233
-
####**Chat channels**
265
+
## **Chat channels**
234
266
235
267
Allow users to communicate amongst themselves in your program.
236
268
@@ -253,17 +285,3 @@ Example on how to send chat message.
0 commit comments