Skip to main content

A simple getpass alternative with masking feature

Project description

Maskpass

Maskpass is a Python library used for asking password by masking it or not echoing it at all

Installation

Use the package manager pip to install maskpass.

pip install maskpass

Usage

This module contains a single function askpass() having two optional arguments prompt and mask. The default value for prompt is Enter Password: and for mask is *

import maskpass

password=maskpass.askpass()

Use mask="" for not echoing anything into the terminal. (Like entering sudo passwords in *nix)

The function returns the entered password in string format

Screenshots

Example GIF

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Issues

Currently I have only tested it in Windows 10 and Manjaro Linux, so I'm not sure it works in macOS. It doesn't work in QtConsole, Jupyter Notebook or PyCharm console.

License

MIT License

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

maskpass-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

maskpass-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file maskpass-0.1.0.tar.gz.

File metadata

  • Download URL: maskpass-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for maskpass-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea29468425b407d21ac583bce7f48303a4fdce82e3266ff5bbe71c54fa10e6b7
MD5 fb3c4f5c14e60bf1917e088b1bb5259a
BLAKE2b-256 408eddaebbcaff96918ef5e5c956ff79f82a1267472e3c99726f3c3c37eeb3b6

See more details on using hashes here.

File details

Details for the file maskpass-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: maskpass-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for maskpass-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55f63725e5212b909cc17d42016f2d89f9d29f86e630b87c9daea9e166258d82
MD5 48d5e1e7eaed824be38015625a0b99c7
BLAKE2b-256 11a064809ea4aad853fe3f8d331b50b8f8c49143edb2e91daeb5289057686a82

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