Quantcast
Channel: password – ShellHacks
Browsing latest articles
Browse All 3 View Live

Generating Random Passwords in the Linux Command Line

You can use the following command to generate the random password: $ tr -dc A-Za-z0-9 < /dev/urandom | head -c 8 | xargs Sample output: 4fFUND1d You can create a bash shell function as follows (add...

View Article


HowTo: Create a Password Protected ZIP File in Linux

This is a small note that describes how to encrypt and decrypt a ZIP file from the Linux command line. I’ll show how to create a password protected ZIP archive from one or several unprotected files or...

View Article


/etc/shadow – HowTo: Generate Password Hash in Linux

Linux stores users’ encrypted passwords, as well as other security information, such as account or password expiration values, in the /etc/shadow file. Someday you may need to edit the /etc/shadow file...

View Article
Browsing latest articles
Browse All 3 View Live