Created
July 5, 2013 13:16
-
-
Save fabioadrianosoares/5934469 to your computer and use it in GitHub Desktop.
Gerar senha aleatório
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/bash | |
#echo 'Obtendo senha do ddg...'; | |
#senha=`wget -q --no-check-certificate -O - \ | |
# https://duckduckgo.com/?q=password+10 | \ | |
# sed -e 's/.*class="zero_click_answer">//' -e 's/ .*//'`; | |
echo 'Obtendo senha do /dev/urandom'; | |
senha=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 10`; | |
echo Senha: $senha; | |
echo md5sum: `echo -n $senha | md5sum`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment