Leave a ⭐ if you like this repository
secure_input is a tiny, dependency-free Python package that provides a secure, user-friendly way to prompt for sensitive input (like passwords) in terminal applications. It supports masking (e.g. *) and aims to be simple to use and easy to drop into any script.
Install from PyPI:
pip install secure-inputPyPI: https://pypi.org/project/secure-input/
from secure_input import secure_input
password = secure_input("Enter your Password: ", show="*")
print("You entered:", password)secure_input(prompt: str, show: str) -> str
prompt: text shown to the usershow: masking character (e.g."*")
- Easy Usage
 - Optional masking character for input
 - Cross-platform terminals supported
 
- Non-ASCII characters (e.g. 
Ö Ä Ü ß) may not be handled correctly — use plain ASCII letters, numbers and symbols for best results. - Always validate and handle the secret data securely in your application (do not print or log real passwords in production).
 
A short interactive example:
from secure_input import secure_input
api_key = secure_input("API Key: ", show="*")
if len(api_key) == 0:
    print("No key provided")
else:
    print("Key received (length):", len(api_key))- Project on PyPI: pypi.org/project/secure-input/
 - Telegram: @Swezy
 
Distributed under the MIT License — see LICENSE for details.
Made with ❤️ — If you find this useful, please leave a ⭐ on the repo
