You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Random Passwords Anyone ?

Author (Read 12565 times)

0 Members and 2 Guests are viewing this topic.

Re: Random Passwords Anyone ?
« Reply #2 on: January 31, 2018, 01:59:55 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
Another way to do this but without saving it as a function, eg; you will need to type it in each time.

Is to type into your terminal

Code: [Select]
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
An example



Coz reverse stuff can be fun, lets do it in reverse -

Code: [Select]
tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1
An example



More to come
 

Random Passwords Anyone ?
« Reply #1 on: January 31, 2018, 01:52:04 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
Hello,

here is a function for making random passwords. It works for the session you are in, and will need re-adding in a new session, eg you can close and open terminal and randpw will work but if you reboot you need to re-add the function.

Code: [Select]
randpw(){ < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;}
If you copy/paste this (or type it) into your terminal and hit enter.

Every time you need a new random password open your terminal and type

Code: [Select]
randpw
and it will generate one and save you having to type the entire function out again that session.

An example -



Be sure to save any random passwords you use somewhere safe, like the password locker/safe, didn't we used to have one of these in Linux Lite ?

I will post some other ways to do this soon.
« Last Edit: January 31, 2018, 02:29:37 PM by bitsnpcs »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section