Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/king-tri-ton/gen-pass
A simple password generator with a system tray icon. This Python script uses the pystray library to create a system tray icon. When the user clicks on the icon, it provides the option to generate a random password and copy it to the clipboard.
https://github.com/king-tri-ton/gen-pass
Last synced: about 2 months ago
JSON representation
A simple password generator with a system tray icon. This Python script uses the pystray library to create a system tray icon. When the user clicks on the icon, it provides the option to generate a random password and copy it to the clipboard.
- Host: GitHub
- URL: https://github.com/king-tri-ton/gen-pass
- Owner: king-tri-ton
- Created: 2023-12-18T11:15:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-01T15:38:01.000Z (12 months ago)
- Last Synced: 2024-01-01T16:30:45.214Z (12 months ago)
- Language: Python
- Size: 112 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Password Generator
https://github.com/king-tri-ton/gen-pass/assets/53092931/a581ebc1-f01f-4e7f-b4cb-a80fca51deb8
A simple password generator with a system tray icon. This Python script uses the **pystray** library to create a system tray icon. When the user clicks on the icon, it provides the option to generate a random password and copy it to the clipboard.
## Prerequisites
Make sure you have the required libraries installed:```bash
pip install pystray Pillow pyperclip
```## Compilation
To compile the script, you'll need to install PyInstaller first:
```bash
pip install pyinstaller
```Then, you can use PyInstaller to create a standalone executable:
```bash
pyinstaller --onefile --noconsole --name="GenPass" --icon=C:\python\gen-pass\Logo.ico app.py
```This will generate a standalone executable file named "GenPass.exe" without a console window.
## Usage- Run the script.
- The script will create a system tray icon.
- Right-click on the icon to access the menu.
- Click on "Generate and copy" to generate a random password.
- The generated password is copied to the clipboard.
- Click on "Exit" to close the program.## Customize
You can customize the password length and character set by modifying the **generate_password** function.
```python
def generate_password(length=12):
# Customize the character set as needed
all_characters = ['A', 'B', 'C', ...]
password = random.sample(all_characters, length)
password_str = ''.join(password)
return password_str
```## License
This project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License.