[Updated] bashpass.sh: added color variables
This commit is contained in:
parent
edeb8126c3
commit
b4214127b5
17
bashpass.sh
17
bashpass.sh
@ -1,5 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
RED='\033[0;31m'
|
||||||
|
LRED="\033[1;31m"
|
||||||
|
BLUE="\033[0;34m"
|
||||||
|
LBLUE="\033[1;34m"
|
||||||
|
GREEN="\033[0;32m"
|
||||||
|
LGREEN="\033[1;32m"
|
||||||
|
YELLOW="\033[1;33m"
|
||||||
|
CYAN="\033[0;36m"
|
||||||
|
LCYAN="\033[1;36m"
|
||||||
|
PURPLE="\033[0;35m"
|
||||||
|
LPURPLE="\033[1;35m"
|
||||||
|
BWHITE="\e[1m"
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
shaStatic(){
|
shaStatic(){
|
||||||
@ -8,7 +23,7 @@ shaStatic(){
|
|||||||
echo
|
echo
|
||||||
echo "${charSize} character password generated using SHA256 with date"
|
echo "${charSize} character password generated using SHA256 with date"
|
||||||
echo "***************************************************"
|
echo "***************************************************"
|
||||||
date +%s | sha256sum | base64 | head -c ${charSize} ; echo
|
date +%s | sha256sum | base64 | head -c ${charSize}; echo
|
||||||
echo "***************************************************"
|
echo "***************************************************"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user