passgen
Version, currently master branch1 version
- master branchlatestMar 24, 2022
github.com/tupini07/passgen
Small and quick terminal password generation
Installation
# Add this to your shard.yml
dependencies:
passgen:
github: tupini07/passgen
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.3.2- License
- MIT
- Author
- your-name-here <your-email-here>
- Target
passgenfrom src/passgen.cr
Dependencies
This version declares no dependencies.
README
passgen
This is a small utility I made mainly as an excuse to play around with the Crystal language.
This is a command line tool that will create a password of the specified length and print it to the console. It is very simple but quite useful if (like me) you find yourself needing to create accounts constantly.
Installation
For the moment the only way to install it is by cloning the repo, compiling the project, and placing the resulting executable somewhere in your path.
You can use just to install the executable to ~/.local/bin, by running just install
from within the project's directory.
Otherwise you can do the following:
shards build --production
cp bin/passgen ~/.local/bin/
Usage
The executable can either be used interactively or non-interactively. For the interactive mode no flags should be passed, and for the non-interactive mode options should be passed as flags.
Interactive mode
In interactive mode, the application will explicitly ask for the information it needs to generate the password.
$ passgen
Length for password? [8] 10
Numbers (0..1)? [n/Y] n
Lowercase (a..z)? [n/Y]
Uppercase (A..Z)? [n/Y] n
Symbols (!@#$%^&*()_+~)? [n/Y]
ip^tkipxyz
Non-interactive mode
TODO: write this
Development
TODO: Write development instructions here
Contributing
Contributions are very welcome! To keep everything organized please follow the following process.
- Fork it (https://github.com/tupini07/passgen/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Andrea Tupini - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Mar 24, 2022
- Crystal
1.3.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/tupini07/passgen
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1