Skip to main content

getpass_asterisk

An alternative implementation for getpass that echoes masked password (such as asterisks).

Security Note

:warning: This module has been modified to add getpass_asterisk, which can echo asterisks in place of password. Echoing of masked password leaks the length of the password. Use this utility only in a scenario where passwords are always of fixed length. This utility was created to receive secret tokens as input which are always of same size. Echoing the asterisks helped improve user experience. Use at your own risk. Only use for taking constant length secret inputs.

Installation

pip can be used to install getpass_asterisk.

pip install getpass_asterisk

Usage

Usage is identical to getpass.

# getpass_asterisk(prompt[, stream]) - Prompt for a password, with masked output.

from getpass_asterisk.getpass_asterisk import getpass_asterisk
password = getpass_asterisk("Enter password: ")

Feedback

For feedback, contact: Muhammad Akbar (akbarATsecursive.com).

Metadata

Release files for getpass-asterisk 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getpass-asterisk 1.0.1
File Size Uploaded
getpass_asterisk-1.0.1.tar.gz 6.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for getpass-asterisk 1.0.1
File Interpreter ABI Platform
getpass_asterisk-1.0.1-py3.8.egg Legacy Egg format - - Details
getpass_asterisk-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / getpass_asterisk-1.0.1.tar.gz

Download URL getpass_asterisk-1.0.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7cc357a924cf62fa4e15b73cb4e5e30685c9084e464ffdc3fd9000a2b54ea9e9
BLAKE2b-256 checksum
How to use checksums
94bde7881421894068b030e91c649a731ed0461d1d0517fd3abd283cf0a4b832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / getpass_asterisk-1.0.1-py3.8.egg

Download URL getpass_asterisk-1.0.1-py3.8.egg
Size 8.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
4b6125fa123225818ea5418b583602120a49f302e3d5fc2e0e55e815f2372db7
BLAKE2b-256 checksum
How to use checksums
dcd1267610e21695894df518bee2ebb8830c7c92958addb7b9fc69ead2b105b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / getpass_asterisk-1.0.1-py3-none-any.whl

Download URL getpass_asterisk-1.0.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20d45cafda0066d761961e0919728526baf7bb5151fbf48a7d5ea4034127d857
BLAKE2b-256 checksum
How to use checksums
3b6e1fcbc1b7ce80869892b7825eb2baf7e999417db891fe5688d07a2e0f2469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

1.0.1 This release

3 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page