Charley Byrne
Charley Byrne
Blog
Recipes
Wiki
Music
Theme
Light
Dark

Directory

  • Align Div Middle [CSS]
  • An Ode To Strange JavaScript [JavaScript]
  • Basics for Bash CLI Programs [Linux]
  • FastAPI Simple Auth [Python]
  • Generating Random Passwords With Bash [Bash]
  • HTML Select Placeholder [HTML]
  • Java List Stream Filter [Java]
  • Killing Port Process [Linux]
  • Prettier Markdown Formatting [Workflow]
  • Python Decorators 101 [Python]
  • Python File Encryption [Python]
  • Setting Up Docker SQL Database On Raspberry Pi [RaspberryPi]
  • Technology Acronyms [Literature]

Generating Random Passwords With Bash

security passwords bash

Using Date SHA256

date +%s | sha256sum | base64 | head -c 32 ; echo

Using Dev Random

Where POPULATION is the characters permitted in the generated password and SIZE can be a natural number.

POPULATION="_A-Z-a-z-0-9?!="
SIZE=16
< /dev/urandom tr -dc "${POPULATION}" | head -c ${1:-$SIZE}; echo;

On This Page

  • Using Date SHA256
  • Using Dev Random

Tags

css [2]
ui [1]
scss [1]
linux [2]
bash [3]
technology [1]
wording [1]
names [1]
prettier [1]
markdown [1]
config [1]
workflow [1]
html [1]
vue [1]
nuxtjs [1]
typescript [1]
python [2]
decorators [1]
raspberry-pi [1]
docker [1]
mariadb [1]
mysql [1]
database [1]
java [1]
collection [1]
streams [1]
security [2]
passwords [1]
cli [1]
snippets [1]
cryptography [1]

This website is powered by NuxtJS and headless CMS content sourced from my GitHub repository.

NuxtJS is a super simple and intuitive meta-framework with a great community worth backing!