genpasswd.sh is a script to generate password.
Generated password is print to the standard output (/dev/stdout)
To use this script, you have to add execution right to it :
chmod u+x genpasswd.sh
If you want it always available, you can :
- copy it in your
~/bindirectory - or add the script directory to the
PATHenvironnement variable
The default configuration is in the "Variables" section :
PASSWORD_LENGTH=15
CHARACTER_SET="[:alnum:]" # -> A-Za-z0-9
RANDOM_INPUT="/dev/urandom"Vairables definitions :
PASSWORD_LENGTH: the desired password lengthCHARACTER_SET: the character set used to generate the password, as it is defined in thetrcommand :- see :
tr --help
- see :
RANDOM_INPUT: file used to get the random characters
You can change these values to get the default configuration you want.
to use this script :
- if it is in your
PATH, rungenpasswd.sh [OPTIONS] - else, run it like any others scripts :
cd <SCRIPT_DIR>; ./genpasswd.sh [OPTIONS]/<SCRIPT_DIR>/genpasswd.sh [OPTIONS]
This script provides some options to change its default configuration or use an interactive mode.
For more information, use the --help option :
genpasswd.sh --help
- Fork it !
- Clone your fork :
git clone <url> - Create your feature branch :
git checkout -b my-new-feature - No tabs please !
- Modify files and add them to the staging area :
git add <FILES> - Commit your changes :
git commit -am 'Add some feature' - Push to the branch :
git push origin my-new-feature - Submit a pull request
This script is under the GNU General Public License version 3 http://www.gnu.org/licenses/.
See this file : ./COPYING