getpass_asterisk
An alternative implementation for getpass that echoes masked password (such as asterisks).
Security Note
⚠️ 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getpass_asterisk-1.0.1.tar.gz | 6.0 kB | Without provenance | Details for getpass_asterisk-1.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getpass_asterisk-1.0.1-py3.8.egg | Legacy Egg format | - | - | Details for getpass_asterisk-1.0.1-py3.8.egg |
| getpass_asterisk-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for getpass_asterisk-1.0.1-py3-none-any.whl |
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
|
Security for getpass-asterisk 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.