FileFault generieren

FileFault generieren
1
2
3
4
5
6
7
8
9
10
genfilefault() {
  passwort=""
  geheim=""
  for il in {1..6}; do
      geheim=$(env LC_CTYPE=C tr -dc "A-Z0-9" < /dev/urandom | head -c 4)
      passwort=${passwort}"-"${geheim}
  done
  passwort=$(echo $passwort | sed -e 's/^-//')
  echo "$passwort"
}
2016 Mai 08