This is a program that provides practice number sense questions to prepare for the Number Sense UIL compeition.
Unmesh, Sopan
idk put description here
This is a program that provides practice number sense questions to prepare for the Number Sense UIL compeition.
Unmesh, Sopan
There is currently a circular dependency error present in Player.py
and utils.py
which can be resolved by moving around functions to better locations.
Tied into the fix for this issue should also be a fix to the following error that appears in some cases:
Traceback (most recent call last):
File "numbersense/./main.py", line 3, in <module>
print(utils.create_default("amogus"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "numbersense/utils.py", line 511, in create_default
Player(username, QuizType.EASY, password="password")
File "numbersense/Player.py", line 101, in __init__
self.password: str = utils.encrypt_password(password, True) # Hashed password as str
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "numbersense/utils.py", line 435, in encrypt_password
hashed_pwd = bcrypt.hashpw(bytes, bcrypt.gensalt()) # Newly hashed & salted password
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: hashpw() argument 1 must be str, not bytes
Process finished with exit code 1
Consider removing match case usages in favor of wider Python version support (<=3.10
)
An exploit allows users to login to an account without needing to use the password. Due to the app flow, if a user creates an account name such as Test
, the Player
class will fix the name by lowercasing (which is something else that needs to be fixed, uppercase should be allowed) and this bypasses the check for existing users because the name change happens in the __init__()
constructor in the Player
class. Changing the sequence order should fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.