Generates random passphrase of given length
This repository depends upon git
, head
, tr
, and printf
command-line utilities, please use the package manager for your distribution to install these dependencies, eg...
- Arch based Operating Systems
sudo packman -Syy
sudo packman -S coreutils git make
- Debian derived Operating Systems...
sudo apt-get install coreutils git make
Additionally this project makes use of Git Submodules to track Bash script dependencies, to avoid incomplete downloads clone with the --recurse-submodules
option...
git clone --recurse-submodules [email protected]:paranoid-linux/generate-random-password.git
After cloning to update tracked Git Submodules issue the following commands...
git pull
git submodule update --init --merge --recursive
To force upgrade of Git Submodules...
git submodule update --init --merge --recursive --remote
Note, forcing and update of Git Submodule tracked dependencies may cause instabilities and/or merge conflicts; if however everything operates as expected after an update please consider submitting a Pull Request.
Perhaps as easy as one, 2.0,...
Clone this project...
mkdir -vp ~/git/hub/paranoid-linux
cd ~/git/hub/paranoid-linux
git clone --recurse-submodules [email protected]:paranoid-linux/generate-random-password.git
If not using a plugin manager, then this plugin may be installed via make install
command...
cd ~/git/hub/paranoid-linux/generate-random-password
make install
If not using a plugin manager, then this plugin may be uninstalled via uninstall
Make target...
cd ~/git/hub/paranoid-linux/generate-random-password
make uninstall
... Which will remove symbolic links and update the Vim help tags file.
To update in the future use make upgrade
command...
cd ~/git/hub/paranoid-linux/generate-random-password
make upgrade
After installation, plugin documentation may be accessed via Vim's man
command...
man generate-random-password
... or, via --help
parameter...
generate-random-password --help
Provide minimum character length for random password to generate...
generate-random-password 32
#> LUy+c99K(t$sF I9XG"?.$8l/=Ld]xwT
Or supply minimum and maximum range of characters...
generate-random-password 32 42
#> gbMCn>cC^OzF1/!9`sx0h|@9&f}YZ?B?4<+m(v>&XE
... which generates a random password between min/max values; inclusively.
This repository may not be feature complete and/or fully functional, Pull Requests that add features or fix bugs are certainly welcomed.
Options for contributing to generate-random-password and paranoid-linux
Start making a Fork of this repository to an account that you have write permissions for.
- Add remote for fork URL. The URL syntax is
[email protected]:<NAME>/<REPO>.git
...
cd ~/git/hub/paranoid-linux/generate-random-password
git remote add fork [email protected]:<NAME>/generate-random-password.git
- Commit your changes and push to your fork, eg. to fix an issue...
cd ~/git/hub/paranoid-linux/generate-random-password
git commit -F- <<'EOF'
:bug: Fixes #42 Issue
**Edits**
- `<SCRIPT-NAME>` script, fixes some bug reported in issue
EOF
git push fork main
Note, the
-u
option may be used to setfork
as the default remote, eg.git push fork main
however, this will also default thefork
remote for pulling from too! Meaning that pulling updates fromorigin
must be done explicitly, eg.git pull origin main
- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is
https://github.com/<NAME>/<REPO>/pull/new/<BRANCH>
Note; to decrease the chances of your Pull Request needing modifications before being accepted, please check the dot-github repository for detailed contributing guidelines.
Thanks for even considering it!
With you may sponsor paranoid-linux on a repeating basis.
Regardless of if you're able to financially support projects such as generate-random-password
that paranoid-linux
maintains, please consider sharing projects that are useful with others, because one of the goals of maintaining Open Source repositories is to provide value to the community.
Documentation for generating random passphrase of given length
Copyright (C) 2020 S0AndS0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For further details review full length version of AGPL-3.0 License.