Skip to main content

provides secure displays **** for password input for both Windows and Unix-like systems.

Project description

termipass

Overview

termipass is a Python package that provides secure password input functionality for both Windows and Unix-like systems. It includes features such as masking the password input, supporting arrow key navigation, and handling the delete key during input.

This package automatically selects the appropriate method to prompt for a password based on the operating system (Windows or Unix-like).

Features

  • Cross-platform support: Works seamlessly on both Windows and Unix-like environments.
  • Optional masking: Mask the password input with any character (e.g., * or ).
  • Arrow key navigation: Move the cursor within the password input using left and right arrow keys.
  • Delete key handling: Allows users to delete characters from the password input.

Installation

You can install the package using pip:

pip install termipass

Quickstart Guide

Below is an example of how to use the termipass package to prompt the user for a password:

from termipass.termipass import termipass

termipass()
Password: *************
'Thisisawesome'
termipass(prompt='YOUR PW HERE: ')
YOUR PW HERE: *************
'Thisisawesome'
termipass(mask='#')
Password: ###########
'Thisisawesome'
termipass(mask='') # Don't show anything calling getpass.getpass()
Password: 
'Thisisawesome'

Author

Developed by Mahmoud Raouf. You can reach me at mahmoud.raouf21@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termipass-0.4.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termipass-0.4-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file termipass-0.4.tar.gz.

File metadata

  • Download URL: termipass-0.4.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for termipass-0.4.tar.gz
Algorithm Hash digest
SHA256 df6fbb276b9b635fc94c4316370e0ac470b9dd2ba4fb97084690b790d27e267e
MD5 bade7f930edcf4a1a11257ce0cc23836
BLAKE2b-256 1e7995a71ebbcf99dc2a3a41a92703f50f530998d8aefcfc7c6e85c891903800

See more details on using hashes here.

File details

Details for the file termipass-0.4-py3-none-any.whl.

File metadata

  • Download URL: termipass-0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for termipass-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2147d62e1c148d63fd644b3d8cbad533d87da987e343053402ce5cdf9461f734
MD5 fedf4ad15df2d9835913a09889dfb8ff
BLAKE2b-256 c296d7e1b077d71bb606488af84c0ecf4c1301e62f44c18f81d81af8539dc17f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page