If you have a PDF file protected by a password, you may wonder how to unlock it and remove the password protection so you don’t have to enter the password every time you want to open the file. The PDF file protection can be easily removed by using a “Print” feature that is present in […]
password
/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 manually to set or change ones password.
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 folders. Warning! The standard ZIP encryption is very weak and could be cracked easily. Password Protected ZIP File […]
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 to your ~/.bashrc): # Random password generator genpasswd() { tr -dc A-Za-z0-9 < /dev/urandom | head -c ${1:-8} | […]