Giter Site home page Giter Site logo

ustore's Introduction

UStore

A simple library for the managment/usage for users

Features

AES encryption on config files.

Automatic sha256 hashing on passwords with salt

High speeds for user R/W

Supports importing and exporting userdata

Getting Started

Installing

pip install ustore

Example

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

Documentation

ustore.init(location-for-data-storage)

Will Initialise the user system to location-for-data-storage

register_account(username,password)

Create an account.

valid_password(username,password)

Validates if the supplied password is valid for the account. Returns Bool value

setconfig(username,configvar,password)

Will set the config file for the user to configvar, Password must be supplied due to config file encryption

Initialisation_Error

Will be thrown if init() is not called

Invalid_Input_Error

Will be thrown if an illegal username/password was supplied

User_Exists_Error

Will be thrown if a user was trying to register an already registered user

Invalid_Password_Error

Will be thrown if the password validation failed unless called by valid_password()

Donate

Etheriuem address: 0x25916caa0dB559bC7F21850cfE678dc9f273A8D7

Nano address : nano_34qtke9s99bgakufzyxyzzropuz4sbya4xgty9m441wnmzayngy35amyd58j

ustore's People

Contributors

jkincorperated avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.