#๐ i need help to make a key validation and key generater for my python code
130 messages ยท Page 1 of 1 (latest)
@mystic jetty
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
can someone help me make a code for the generator for the keys and make it so it says they need a key to use my code once they launch it
generate what keys for what purpose
for my python code
like you know how you need a key once you launch a .py file and it asks for a key
like that
Do you have a database set up? I think you would need a database for this. Then you can use secrets to make the key, and requests (or something like it) to check if the key is in the database. You should also probably salt and hash the keys in the database.
Rough outline: Server makes key with secrets, then hashes and salts in database. The user gets your program you ask for the key as input it makes a request to the server and then the hash is checked against the key.
nope could you help me im new to python
This is a pretty complicated thing to do (surprisingly enough). I would probably hold off until you become more familiar with programming in general.
unfortunately, I am a little too busy to give more than a sketch, but good luck!
could anyone else help me that has time
i never needed a key to "launch" a .py file, got no clue what u talking about 
are u trying to sell software and trying to lock execution behind a key ?
i want it so if my friends ever leak my stuff no one will be able to use except those with a key
@torn heath
why would your friends do such a thing?
alot of my old friends did
if they have the .py file they could just remove the validation code
you'd need to compile your code to an exe
that doesnt solve issue one bit, u can still get source code inside an exe
it would sure make it a lot harder
eh
ill make it into a exe
vs just opening the file??
do you know how to tho
pyinstaller
what is the software product you aim to sell?
depending on how u make it into an .exe its literally shoving the source.py together with python interpreter into an .exe and calling it a day
no clue how nuanced/complex it can get tbh
but thats gist of whats happening
like you know how you need a key once you launch a .py file and it asks for a key
what does this software do exactly?
thats true so just be smart about it, you dont need to disregard the idea completely
if u want to truly hide source code then making SaaS is a much better/easier idea
but thats not something i would recommend to some1 new at python
prob a lil too complicated
could anyone help me get a code that is like you know how you need a key once you launch a .py file and it asks for a key (some)
ur best bet is literally making ur code as an api and implementing the need of an api key but what thyrgle said above, its p complicated
Sorry for repeating, but what does your software aim to achieve?
what does my code do ?
Yes
its like a a password gen for people who want to use random passwords
you mean like this one? https://www.lastpass.com/features/password-generator
Create a secure password using our generator tool. Help prevent a security threat by getting a strong password today on Lastpass.com
accessible online, not requiring a download?
ye something like that but in .py
there is no foolproof way to do this nor is there a reason to
an api would be best way but then the hiding is 100x more complex then code u hiding 
There are some recipes for generating passwords in the stdlib secrets module: https://docs.python.org/3/library/secrets.html#module-secrets
ill prob do this
Then you're going to need to learn some library like requests to talk to the database, some database like Postgresql. Hashing and salting. And secrets for key generation. It might take a while though. You will also need to get some sort of server (which I guess could be your personal computer in theory, but I wouldn't do that)
or/and fastapi 
Or that too lol
ok maybe i'm making it too complicated... wouldn't be the first time. but I think that only replaces requests
there should be libraries made specifically for postgresql
eh database is optional, we got no clue what kind of password generation they have so we got no clue if they storing user->generated_password or watever 
the easy way is not hiding code
but hiding code
any apis i could use
@torn heath
fastapi is server side, no? and requests is client side
(Haven't used fastapi.)
I do not recommend helping this individual

Oh, I'm not thinking about it too carefully. Point is you need a server with database to store the keys in a protected way and then you need some way to transfer using something like requests or w/e to compare to the keys in the database.
huh
looks like they're involved in "carding" = credit card theft
i dont its methods
so you buy n1tro for cheap since your in turkish
and you sell for more
paypal blocked my card cause i transfered ltc to paypal
so... you don't steal credit cards?
do you know what carding means?
@wary socket no those people do fraud
discord does not allow the resale of paid content like nitro
You may not copy, modify, create derivative works based upon, distribute, sell, lease, or sublicense any of our software or services
discord.com terms of service section 6
you agreed to discord's terms of service when you created your account, this is not an excuse
ah yes the greatest defense
telegram is my next option
thanks guys
for the help
no like dead ass thanks
yall were helping me
@crystal lion thanks for letting me know
you should consider obtaining services legally. trying to do crap like this is not worthwhile and is just a waste of your time. hold yourself to higher standards :)
"carding" indeed means credit card fraud.
i dont steal cards lmao
i have my own
why'd you reply "yes" to someone asking you if you did carding?
^^ right here buddy
yeah right ๐
there are many caveats to this...
-
almost all python code, is always readable and available. one aspect of python, that its code is actually just plain text, interpreted into machine code during execution.
so unless you convert it into another format, even if you've obfuscate it, the code can be easily reverse engineered; core logic and all. -
the safest approach regarding keys and tokens, would be to host a server that'd handle all that.
while having asymmetrical encryption/decryption -
mind that any program that works client side, may be reverse engineered. there's no way around that, you could only take steps to slow them down.
-# in regards to the client-side logic. not the server's. -
Given the sensitivity of the program; think if there are any ways you can remove or reduce any confidential parts of the program.
i ain't joining back to that sketchy ahh server bruh
don't need the FBI knocking on my door
some more context is needed tho
๐คฃ
Bro needs DRM for a password generator?

!rules 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
!close thanks
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.