How to Create Random Passwords in Linux Terminal

preview_player
Показать описание
Using one of my favourite tools pwgen to generate random pronounceable passwords.
I also show a couple of other methods using OpenSSL and md5sum / sha256sum

Install instructions for Ubuntu
$ sudo apt install pwgen

Like my channel? Please help support it:

Follow me on Social Media
Рекомендации по теме
Комментарии
Автор

Gunna need a video on that theme, looks like kde5 and many tweaks

thingyee
Автор

This is also available through Homebrew btw...

'cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 25; echo`

Is also a good method

casperes
Автор

This video is quite helpful, however there is this one utility that is (I guess) a default in Ubuntu, it is "apg". This is the one I use to generate my passwords.

ApurvJyotirmay
Автор

Thanks for the upload! Do you have any password lockers/vaults that you would recommend? Nothing is as good as writing them down of course, unless you write them in a way that can only be read with a rule that only you can recall and then you forget the code, which I've done countless times now lol :/

Dewsta
Автор

I have a magic trick for passwords:
Whenever I want to make a new one, I don't invent anything, I just array old passwords, double the passwords, double the fun

RDMSR
Автор

Another example of why Linux "Rocks the Kasbah".

bradolson
Автор

I don't think that 'date | md5sum' is particularly safe. If I know approximately when you generated your password (account creation time), then I have a good chance of guessing your password. I'd stick to the openssl method, or just 'cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 25; echo`

matthewmummert
Автор

Hey quids, what do you think of diceware?

philwong
Автор

If you don't care about pronounceable you could do something like this:
strings /dev/urandom | grep [A-Za-z0-9_\ ] | head -c 50 | tr -d '\n'

If you want something that generally is pronounceable, assuming you have cracklib installed, you could do this:
 shuf /usr/share/cracklib-words | head -n 10 | sed ':a;N;$!ba;s/\n/ /g'


This is assuming you trust your computer's randomness but if you don't you could also go with "diceware"

username
Автор

Try and remember one of those passwords when you're out on the bus :-(

dclcav
Автор

I usually generate my passwords on random.org, pick a "nice" one and then type it about 20 to 50 times, until I just remember it...

Karuso
Автор

I normally do "date | md5sum" and then randomly change some of the alphabetical characters into upper case. The password then goes into a KeepassX database.

jonathanwarner
Автор

I enjoyed that! Its a pity mdsum etc. returns 0-9 & a-f (16 charactors). But hey. Mr. Google looks after all my passwords so its all completely safe from spying eyes!

maws
Автор

Challenge Accepted! Cardiff, Wales Correct?

zanaris-falador
Автор

How do you change your root password ?
I am on Manjaro

thedoctor
Автор

i keep my passwords in a little black book like you say no hacking here unless they break in and steal my book Lol.

rhodesyuk
Автор

I tried using pwgen a while ago, in my drunken cider Linux stuper, i just made my own that i use stupid drunken wirds, which means you may be have to be drunk to crack it....lol..nuff said....lol

sneekylinux
Автор

YA BUNUN BU KONU İLE ALAKASI NE KANKA YA

rexo
Автор

sorry, guys: i know this is no help-forum but maybe someone knows about my issue. I have a desktop-pc and its already formated. It is a x4-CPU and has uefi bios on it. I just cant install ubuntu from a usb-disk. He asks me, after i boot from usb, if i want to tryo or install ubuntu. In both options the screen goes dark and after a while the light of my monitor blinks, like everything was that.
on my bios there is not the option of secureboot enabled/disabled. the problem for me is, i fucking HATE windows. I fucking hate it. has anyone maybe an idea?

chasechase
Автор

Man, this video is just packed with bad practices

1. Writes down his passwords; I can't hack a paper book but anyone who knows you can take it without needing a degree in data science, this is much more unsafe
2. Uses MD5, which has been hacked/cracked so, so many times and is deemed unsafe for cryptography purposes, such as passwords
3. In general; uses a hash to generate a password?! That's not at all what they're for!

Guys, use a password manager and actually random passwords!
KeePass is cross-platform and doesn't store anything online, can't hack a USB stick, can't take anything from an encrypted file ;-)
BitWarden allows you to host it yourself on your own port-forwarded server, do your research well and this is extremely safe as well

theramendutchman
visit shbcf.ru