# TS-Login

A lightweight and easy-to-use Python package for simple user registration and login, created by Twan and Sil.

This package provides a ready-to-use prompt where users can either log in or register a new account. It securely hashes passwords using SHA-256 and stores user data locally in a `users.json` file.

## Features

* **User Registration:** Allows new users to create an account and checks if the username is already taken.
* **User Login:** Verifies existing users by checking their username and matching the hashed password.
* **Secure Hashing:** Uses Python's built-in `hashlib` to securely hash passwords (SHA-256) before storing them.
* **Local Storage:** Automatically creates and manages a `users.json` file in the directory where the script is executed.

## Installation

You can install this package easily via pip:

```bash
"pip install ts-login"