ShellHacks
Command-Line Tips and Tricks

password

  • Blog

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

Posted on December 27, 2016March 20, 2017by admin

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.

Read More
3 Comments
  • Blog

HowTo: Create a Password Protected ZIP File in Linux

Posted on December 27, 2016February 24, 2017by admin

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 […]

Read More
3 Comments
  • Blog

Generating Random Passwords in the Linux Command Line

Posted on December 27, 2016February 24, 2017by admin

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} | […]

Read More
2 Comments

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory aws bash boot cmd command-line curl dns docker encryption git gitlab java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2022 | www.ShellHacks.com