Skip to content

chanchan69/VegetablesAuth.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VegetablesAuth.py

A simple Vegetables Auth wrapper for Python

Login

from vege_auth import AuthClient, AuthError

c = AuthClient("your_aid", "your_api_key", "your_client_secret", "your_rsa_private_key")  # rsa key is only needed if you need to decrypt the variables

try:
    response = c.authenticate("chanchan", "chanchan's password")

    print(f"Successfully logged in, your license type is: {response.license_type}")
except AuthError as ex:
    print(f"An error occurred: {ex}")

Register

c = AuthClient("your_aid", "your_api_key", "your_client_secret", None)

response = c.register("chanchan", "chanchan's password", "[email protected]",
                      "LICENSE-6672-41b8-ba50-5f41114b1774")

print(f"Auth message: {response}")

Reset HWID

c = AuthClient("your_aid", "your_api_key", "your_client_secret", None)

response = c.reset("chanchan", "chanchan's password", "RESET-6672-41b8-ba50-5f41114b1774")

print(f"Auth message: {response}")

About

A simple Vegetables Auth wrapper for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages