Random Password Generator Linux Shell Script Tutorial

preview_player
Показать описание

Playlist:

This video was sponsored by:
Karl Arvid
Steven C. Morreale

Рекомендации по теме
Комментарии
Автор

Nice Video Kris, really handy. I've used the MD5 hashing in the past to hash a webpage, then compare the hash later on to test for any changes to the page.

darktherapy
Автор

Can you modify the command to generate a password that is still random but uses at least two upper case letters, two lower case letters, two numbers, and two special characters? There also cannot be more than three characters of the same class consecutively and it has to be fifteen characters long. Thanks for your help.

RyanEstep
Автор

thx Kris, I really like your videos. so much to learn

alemjcn
Автор

You can use the uuidgen command it will create some random characters.

jrgenmortensen
Автор

did he not ask to include symbols as well?

ddjazz
Автор

To make your dirty hack a bit more random, and non-dupe "safe" you could have used date +%s%N instead of date as it will output UNIX timestamp in nanoseconds.

rudde
Автор

Say you want to print information from a program ex:
top | awk NR==2'{print $2}'
But you dont want top to still be runing.

auilvcyyhezbqcqwvzhilrennm
Автор

+Kris Occhipinti This was prob one of your best vids... Was gonna try and figure this out on my own just never got around to it... I am surprised I didn't think about this cuz I use the random to overwrite data I want to secure erase.

One thing how would I grab the alpha and special characters such as @#$% ect.... I should pull up the man for grep but if you know off the top of your head maybe you can comment please.

Great vids Kris.

enricoricci
Автор

I've always used this:
openssl rand -base64 10

you can even filter some chars using sed. For example this is what I use to used: openssl rand -base64 $1 | cut -f 1 -d "=" | sed 's/+//g' | sed 's/\///g'

and this is the whole function in my .bash_rc

function random_string {
if [ -z "$1" ] # Is parameter #1 zero length?
then
echo "Type the length of the string" # Or no parameter passed.
else
openssl rand -base64 $1 | cut -f 1 -d "=" | sed 's/+//g' | sed 's/\///g'
fi

}

gagginaspinnata