Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafpyprog/pyssword
Python tool to get a password from the user and display a masked value at the prompt.
https://github.com/rafpyprog/pyssword
getpass password python
Last synced: 5 days ago
JSON representation
Python tool to get a password from the user and display a masked value at the prompt.
- Host: GitHub
- URL: https://github.com/rafpyprog/pyssword
- Owner: rafpyprog
- Created: 2016-05-25T20:26:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T01:46:25.000Z (over 2 years ago)
- Last Synced: 2024-10-09T10:04:27.237Z (about 1 month ago)
- Topics: getpass, password, python
- Language: Python
- Size: 9.03 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE/license.txt
Awesome Lists containing this project
README
# getpwd
![PyPI](https://img.shields.io/pypi/v/getpwd)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/getpwd)
![Downloads](https://img.shields.io/pypi/dm/getpwd.svg)
![PyPI - Platform](https://img.shields.io/badge/Platform-Windows%7CLinux-green)Python tool to get a password from the user and display a masked value at the prompt.
## Installing
```pip install getpwd```## Using
```Python
>>> from getpwd import getpwd
>>> secret = getpwd()
Password: ********
>>> print(secret)
mysecret
```### Custom prompt
```Python
>>> from getpwd import getpwd
>>> secret = getpwd("Please insert your password: ")
Please insert your password: ********
>>> print(secret)
mysecret
```If you would like to make any comments then please feel free to email me at [email protected]