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.1.tar.gz (4.0 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.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termipass-0.4.1.tar.gz
Algorithm Hash digest
SHA256 096842b0e61a92a551343f7a2985e6bca44187f4547b8fb01d8e3459ef8d1c4d
MD5 0228ee21d44fff577ed5fc5be98ca8a3
BLAKE2b-256 7610daaa011d0091efa7e4de2120767644e2defa5dce4adb4ab9cbb1f9ff464f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for termipass-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83f5e42de818ccf0c4ca19924264f918ed3b8137695e62d2f3207b8f82b45905
MD5 713bfd6a3336a1e209d89456a4096063
BLAKE2b-256 73c0db2a001ec123799e4159161b15d32a9c617392c96304fcdbdada0e204603

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