A simple library for the managment/usage for users
AES encryption on config files.
Automatic sha256 hashing on passwords with salt
High speeds for user R/W
Supports importing and exporting userdata
pip install ustore
import ustore
ustore.init(".") # Set user storage location to current dir
ustore.register_account("user","pass") # Make a user with the username user and a password bar
ustore.setconfig("user","data","pass") # Set the config value for the user user to data
ustore.getconfig("user","pass") # Get the config for the user user
ustore.valid_password("user","pass2") # Check if the user user's password is pass
Will Initialise the user system to location-for-data-storage
Create an account.
Validates if the supplied password is valid for the account. Returns Bool value
Will set the config file for the user to configvar, Password must be supplied due to config file encryption
Will be thrown if init() is not called
Will be thrown if an illegal username/password was supplied
Will be thrown if a user was trying to register an already registered user
Will be thrown if the password validation failed unless called by valid_password()