Metadata-Version: 2.4
Name: https-login
Version: 1.1.0
Summary: Tiny HTTPS file server (like python -m http.server) with a simple login page and temp self-signed cert.
Author-email: Benjamin Kasser <benjaminkasser@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Benjamin Kasser
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/Nero2201/https-login
Project-URL: Issues, https://github.com/Nero2201/https-login/issues
Keywords: https,httpserver,fileserver,login,python
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=41
Dynamic: license-file

# https-login-server

[![PyPI - Version](https://img.shields.io/pypi/v/https-login)](https://pypi.org/project/https-login/)



A tiny HTTPS file server (similar to `python -m http.server`) with:
- temporary self-signed TLS certificate (generated at runtime)
- simple login page
- PBKDF2 password hashing + passfile

## Install
```bash
pip install https-login
```

## Usage
```bash
https-login --set-password "mypassword"
https-login --dir . --port 8443 --host localhost
````
or
```bash
python -m https_login.server
```

## Notes

Self-signed cert => browser warning is expected.
