Skip to content

Genpasswd is an app that generates strong password via CLI and TUI in your system. Also, it logs every passwords you have created in /var/log/secrof.log. Linux Platform only.

License

Notifications You must be signed in to change notification settings

Who5673/genpasswd

Repository files navigation

genpasswd

genpasswd (written in python3, library python3-rich and some standard python ones) is a Command Line Interface (CLI) app that generates strong passwords and logs every generating actions while using it. It use a file system which has /var/log/secrof.log as a path to a log file to take down every passwords generated with the exactly time in the past.

genpasswdtui (written in C, library ncurses.h in libncurses-dev and some standard C ones) is a Text-based User Interface app for genpasswd, but you can only use your keyboard to control that app and it is under progress of building. In the future, it is predicted that we will support mouse button soon.

Screenshot

genpasswd app being opened in xfce4 Desktop (Kali Linux).

Screenshot

genpasswdtui app being opened in Kali Linux Text TeleTYpewriter tty2.

Standout features:

  • Generate strong passwords: After running genpasswd, you will be prompted to take down the length, the strong password will be generated, and then after doing that, the app will ask you that you want to clear logs, take down apps that you want to save or do nothing (if leave empty).

    About genpasswdtui, the options will be seen by you so you can control it using arrows (up, down, left, right) and Enter key to interact (same as right arrow).

  • Genpasswd web: We also have a website (WIP):

https://who5673.github.io/genpasswdweb.github.io/

Requirements and dependencies

This app needs those requirements in PyPI (or apt) are:

  • rich (needs to have colors) Recommend: You can install python3 libraries (python3-xyz, which xyz is a library name) from apt, like python3-rich
  • textual (modern TUI python library) Those apps needs to be installed as the dependencies of genpasswd from the system are:
  • libncurses-dev (It has ncurses.h to run TUI apps, from Advanced Package Tool - apt)
  • pkexec (automatic prompt for root access)
  • bash (for shell commands)

Installations:

1. Install via Linux system Packages Installer (from apt, dpkg or gdebi)

  • Install via apt for the first time:
curl -fsSL https://who5673.github.io/genpasswd/dists/stable/Release.gpg | sudo gpg --dearmor -o /usr/share/keyrings/genpasswd.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/genpasswd.gpg] https://who5673.github.io/genpasswd stable main" | sudo tee /etc/apt/sources.list.d/genpasswd.list
sudo apt update 2>/dev/null && sudo apt --yes install password-generator
  • Install via apt after adding the repo:
sudo apt install password-generator --yes
  • Install via dpkg:
wget https://github.com/Who5673/genpasswd/releases/download/1.0.8/password-generator_1.0.8_all.deb
sudo dpkg -i password-generator_1.0.8_all.deb

Check if you have installed password-generator (genpasswd)

genversion

If it returns to a version, it means that you have installed password-generator.

  • Install via gdebi: Please make sure that you have installed gdebi via apt or software/app center first:
sudo apt update && sudo apt --yes install gdebi
  • Install .deb file using gdebi or dpkg.
    Using gdebi CLI: Open the Terminal (Ctrl+Alt+T or the Terminal icon) and execute this command:
wget https://github.com/Who5673/genpasswd/releases/download/1.0.8/password-generator_1.0.8_all.deb
sudo gdebi password-generator_1.0.8_all.deb
  • Optional: You can remove the installation package like this picture (make sure to remember the path to the package):

Screenshot

  • Cautions: As dpkg cannot automatically solve dependencies, so you may need to use sudo apt --fix-broken install to solve them. If you have changed attribute (chattr) some system directories, please chattr -i -a /usr /bin ... first.

Uninstallations:

  • Uninstall genpasswd by using this command:
sudo apt purge --yes password-generator

License: GPLv3
From v1.0.8 of genpasswd, the license will be changed from MIT to GPLv3.
Some ideas assisted by ChatGPT - (c) genpasswd, who5673, June 2025. All rights served. You can support us to improve this application in the future, but do not vandalize this project or make another copyright of it.

About

Genpasswd is an app that generates strong password via CLI and TUI in your system. Also, it logs every passwords you have created in /var/log/secrof.log. Linux Platform only.

Resources

License

Stars

Watchers

Forks

Packages

No packages published