julian57
Goto Top

Batch Passwort Generator - - - ist weitere Optimierung möglich?

Hallo zusammen,

hier werde ich euch meinen Passwort Generator vorstellen.

Gleich vorab, wer Verbesserungsvorschläge kann diese gerne äußern.

Ziel des Programms ist es, zufällige Passwörter zu generieren (4-,6-,7-,8,-10-,12-,16 Stellig)

es wird hierfür nur eine Batch-Datei benötigt

Hier mal der Code:

@echo off
mode 58
:Hauptmenu
title Hauptmenu
echo.
echo **Hauptmenu**
echo.
echo Wähle Aktion aus:
echo [1]Passwortgenerator starten
echo [2]Info zu Programm
echo [3]Mehr Programme
echo [4]Schliessen
set /P whm=
If %whm%==1 (goto PWGenerator)
If %whm%==2 (goto Info)
If %whm%==3 (start www.Julian57.de.tl & cls & goto Hauptmenu)
If %whm%==4 (exit)
cls
goto Hauptmenu
:Info
title Informationen zu Programm
echo  _____________________________________________
echo.
echo  ** Inforamtionen zu Programm **            
echo.                                          
echo  Title:           Passwort-Generator               
echo.                                          
echo  Author:          Julian Schmidt         
echo.                                          
echo  Version:         2.0.0              
echo.
echo  Erstellungdatum: Son 10.10.2010
echo.
echo  Beschreibung:    Generieren von Passwoertern
echo  _____________________________________________
echo.
Pause
cls
goto Hauptmenu
:PWGenerator
cls
title Passwort Generator
echo.
echo **Auswahlmenu**
echo.
echo Generieren von:
echo ---------------------------------------------------------
echo. NR. Art                 Länge       Zeichenfolge
echo ---------------------------------------------------------
echo  [1] PIN                 4 Stellig   nur Zahlen
echo.
echo  [2] Internet Passwort1  6 Stellig   Zahlen u. Buchstaben
echo.
echo  [3] Internet Passwort2  7 Stellig   Zahlen u. Buchstaben
echo.
echo  [4] Internet Passwort3  8 Stellig   Zahlen u. Buchstaben
echo.
echo  [5] Internet Passwort4  10 Stellig  Zahlen u. Buchstaben
echo.
echo  [6] Server Passwort1    12 Stellig  Zahlen u. Buchstaben
echo.
echo  [7] Server Passwort2    16 Stellig  Zahlen u. Buchstaben
echo ---------------------------------------------------------
echo Optionen:
echo [exit]Schliessen
echo [reset]Zurueck zum Hauptmenu
set /P PWaw=
If %PWaw%==1 (echo Wie viele PINS wollen sie Generieren? & set /p counter=& echo. & echo Generierte PINs: & echo. & set Zähler= 0 & goto GenPINs)
If %PWaw%==2 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & goto genpw6)
If %PWaw%==3 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & goto genpw7)
If %PWaw%==4 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & goto genpw8)
If %PWaw%==5 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & goto genpw10)
If %PWaw%==6 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & goto genpw12)
If %PWaw%==7 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & goto genpw16)
If %PWaw%==exit (exit)
If %PWaw%==reset (cls & goto Hauptmenu)
cls
goto PWGenerator
goto PIN
:GenPINs
title PIN Genertaor (4-Stellig)
Set /a zzahl1=%random% %% 10 + 1
Set /a zzahl2=%random% %% 10 + 1
Set /a zzahl3=%random% %% 10 + 1
Set /a zzahl4=%random% %% 10 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl2%==1 (set ziffer2=0)
If %zzahl2%==2 (set ziffer2=1)
If %zzahl2%==3 (set ziffer2=2)
If %zzahl2%==4 (set ziffer2=3)
If %zzahl2%==5 (set ziffer2=4)
If %zzahl2%==6 (set ziffer2=5)
If %zzahl2%==7 (set ziffer2=6)
If %zzahl2%==8 (set ziffer2=7)
If %zzahl2%==9 (set ziffer2=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl3%==1 (set ziffer2=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto GenPINs
:genpw6
title Passwort Generator(6 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)
If %zzahl5%==33 (set ziffer5=y)
If %zzahl5%==34 (set ziffer5=x)
If %zzahl5%==35 (set ziffer5=c)
If %zzahl5%==36 (set ziffer5=v)
If %zzahl6%==1 (set ziffer5=0)
If %zzahl6%==2 (set ziffer6=1)
If %zzahl6%==3 (set ziffer6=2)
If %zzahl6%==4 (set ziffer6=3)
If %zzahl6%==5 (set ziffer6=4)
If %zzahl6%==6 (set ziffer6=5)
If %zzahl6%==7 (set ziffer6=6)
If %zzahl6%==8 (set ziffer6=7)
If %zzahl6%==9 (set ziffer6=8)
If %zzahl6%==10 (set ziffer6=9)
If %zzahl6%==11 (set ziffer6=q)
If %zzahl6%==12 (set ziffer6=w)
If %zzahl6%==13 (set ziffer6=e)
If %zzahl6%==14 (set ziffer6=r)
If %zzahl6%==15 (set ziffer6=t)
If %zzahl6%==16 (set ziffer6=z)
If %zzahl6%==17 (set ziffer6=u)
If %zzahl6%==18 (set ziffer6=i)
If %zzahl6%==19 (set ziffer6=o)
If %zzahl6%==20 (set ziffer6=p)
If %zzahl6%==21 (set ziffer6=b)
If %zzahl6%==22 (set ziffer6=a)
If %zzahl6%==23 (set ziffer6=s)
If %zzahl6%==24 (set ziffer6=d)
If %zzahl6%==25 (set ziffer6=f)
If %zzahl6%==26 (set ziffer6=g)
If %zzahl6%==27 (set ziffer6=h)
If %zzahl6%==28 (set ziffer6=j)
If %zzahl6%==29 (set ziffer6=k)
If %zzahl6%==30 (set ziffer6=l)
If %zzahl6%==31 (set ziffer6=n)
If %zzahl6%==32 (set ziffer6=m)
If %zzahl6%==33 (set ziffer6=y)
If %zzahl6%==34 (set ziffer6=x)
If %zzahl6%==35 (set ziffer6=c)
If %zzahl6%==36 (set ziffer6=v)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%%ziffer5%%ziffer6%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto genpw6
:genpw7
title Passwort Generator(7 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
Set /a zzahl7=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)
If %zzahl5%==33 (set ziffer5=y)
If %zzahl5%==34 (set ziffer5=x)
If %zzahl5%==35 (set ziffer5=c)
If %zzahl5%==36 (set ziffer5=v)
If %zzahl6%==1 (set ziffer5=0)
If %zzahl6%==2 (set ziffer6=1)
If %zzahl6%==3 (set ziffer6=2)
If %zzahl6%==4 (set ziffer6=3)
If %zzahl6%==5 (set ziffer6=4)
If %zzahl6%==6 (set ziffer6=5)
If %zzahl6%==7 (set ziffer6=6)
If %zzahl6%==8 (set ziffer6=7)
If %zzahl6%==9 (set ziffer6=8)
If %zzahl6%==10 (set ziffer6=9)
If %zzahl6%==11 (set ziffer6=q)
If %zzahl6%==12 (set ziffer6=w)
If %zzahl6%==13 (set ziffer6=e)
If %zzahl6%==14 (set ziffer6=r)
If %zzahl6%==15 (set ziffer6=t)
If %zzahl6%==16 (set ziffer6=z)
If %zzahl6%==17 (set ziffer6=u)
If %zzahl6%==18 (set ziffer6=i)
If %zzahl6%==19 (set ziffer6=o)
If %zzahl6%==20 (set ziffer6=p)
If %zzahl6%==21 (set ziffer6=b)
If %zzahl6%==22 (set ziffer6=a)
If %zzahl6%==23 (set ziffer6=s)
If %zzahl6%==24 (set ziffer6=d)
If %zzahl6%==25 (set ziffer6=f)
If %zzahl6%==26 (set ziffer6=g)
If %zzahl6%==27 (set ziffer6=h)
If %zzahl6%==28 (set ziffer6=j)
If %zzahl6%==29 (set ziffer6=k)
If %zzahl6%==30 (set ziffer6=l)
If %zzahl6%==31 (set ziffer6=n)
If %zzahl6%==32 (set ziffer6=m)
If %zzahl6%==33 (set ziffer6=y)
If %zzahl6%==34 (set ziffer6=x)
If %zzahl6%==35 (set ziffer6=c)
If %zzahl6%==36 (set ziffer6=v)
If %zzahl7%==1 (set ziffer7=0)
If %zzahl7%==2 (set ziffer7=1)
If %zzahl7%==3 (set ziffer7=2)
If %zzahl7%==4 (set ziffer7=3)
If %zzahl7%==5 (set ziffer7=4)
If %zzahl7%==6 (set ziffer7=5)
If %zzahl7%==7 (set ziffer7=6)
If %zzahl7%==8 (set ziffer7=7)
If %zzahl7%==9 (set ziffer7=8)
If %zzahl7%==10 (set ziffer7=9)
If %zzahl7%==11 (set ziffer7=q)
If %zzahl7%==12 (set ziffer7=w)
If %zzahl7%==13 (set ziffer7=e)
If %zzahl7%==14 (set ziffer7=r)
If %zzahl7%==15 (set ziffer7=t)
If %zzahl7%==16 (set ziffer7=z)
If %zzahl7%==17 (set ziffer7=u)
If %zzahl7%==18 (set ziffer7=i)
If %zzahl7%==19 (set ziffer7=o)
If %zzahl7%==20 (set ziffer7=p)
If %zzahl7%==21 (set ziffer7=b)
If %zzahl7%==22 (set ziffer7=a)
If %zzahl7%==23 (set ziffer7=s)
If %zzahl7%==24 (set ziffer7=d)
If %zzahl7%==25 (set ziffer7=f)
If %zzahl7%==26 (set ziffer7=g)
If %zzahl7%==27 (set ziffer7=h)
If %zzahl7%==28 (set ziffer7=j)
If %zzahl7%==29 (set ziffer7=k)
If %zzahl7%==30 (set ziffer7=l)
If %zzahl7%==31 (set ziffer7=n)
If %zzahl7%==32 (set ziffer7=m)
If %zzahl7%==33 (set ziffer7=y)
If %zzahl7%==34 (set ziffer7=x)
If %zzahl7%==35 (set ziffer7=c)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%%ziffer5%%ziffer6%%ziffer7%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto genpw7
:genpw8
title Passwort Generator(8 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
Set /a zzahl7=%random% %% 36 + 1
Set /a zzahl8=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)
If %zzahl5%==33 (set ziffer5=y)
If %zzahl5%==34 (set ziffer5=x)
If %zzahl5%==35 (set ziffer5=c)
If %zzahl5%==36 (set ziffer5=v)
If %zzahl6%==1 (set ziffer5=0)
If %zzahl6%==2 (set ziffer6=1)
If %zzahl6%==3 (set ziffer6=2)
If %zzahl6%==4 (set ziffer6=3)
If %zzahl6%==5 (set ziffer6=4)
If %zzahl6%==6 (set ziffer6=5)
If %zzahl6%==7 (set ziffer6=6)
If %zzahl6%==8 (set ziffer6=7)
If %zzahl6%==9 (set ziffer6=8)
If %zzahl6%==10 (set ziffer6=9)
If %zzahl6%==11 (set ziffer6=q)
If %zzahl6%==12 (set ziffer6=w)
If %zzahl6%==13 (set ziffer6=e)
If %zzahl6%==14 (set ziffer6=r)
If %zzahl6%==15 (set ziffer6=t)
If %zzahl6%==16 (set ziffer6=z)
If %zzahl6%==17 (set ziffer6=u)
If %zzahl6%==18 (set ziffer6=i)
If %zzahl6%==19 (set ziffer6=o)
If %zzahl6%==20 (set ziffer6=p)
If %zzahl6%==21 (set ziffer6=b)
If %zzahl6%==22 (set ziffer6=a)
If %zzahl6%==23 (set ziffer6=s)
If %zzahl6%==24 (set ziffer6=d)
If %zzahl6%==25 (set ziffer6=f)
If %zzahl6%==26 (set ziffer6=g)
If %zzahl6%==27 (set ziffer6=h)
If %zzahl6%==28 (set ziffer6=j)
If %zzahl6%==29 (set ziffer6=k)
If %zzahl6%==30 (set ziffer6=l)
If %zzahl6%==31 (set ziffer6=n)
If %zzahl6%==32 (set ziffer6=m)
If %zzahl6%==33 (set ziffer6=y)
If %zzahl6%==34 (set ziffer6=x)
If %zzahl6%==35 (set ziffer6=c)
If %zzahl6%==36 (set ziffer6=v)
If %zzahl7%==1 (set ziffer7=0)
If %zzahl7%==2 (set ziffer7=1)
If %zzahl7%==3 (set ziffer7=2)
If %zzahl7%==4 (set ziffer7=3)
If %zzahl7%==5 (set ziffer7=4)
If %zzahl7%==6 (set ziffer7=5)
If %zzahl7%==7 (set ziffer7=6)
If %zzahl7%==8 (set ziffer7=7)
If %zzahl7%==9 (set ziffer7=8)
If %zzahl7%==10 (set ziffer7=9)
If %zzahl7%==11 (set ziffer7=q)
If %zzahl7%==12 (set ziffer7=w)
If %zzahl7%==13 (set ziffer7=e)
If %zzahl7%==14 (set ziffer7=r)
If %zzahl7%==15 (set ziffer7=t)
If %zzahl7%==16 (set ziffer7=z)
If %zzahl7%==17 (set ziffer7=u)
If %zzahl7%==18 (set ziffer7=i)
If %zzahl7%==19 (set ziffer7=o)
If %zzahl7%==20 (set ziffer7=p)
If %zzahl7%==21 (set ziffer7=b)
If %zzahl7%==22 (set ziffer7=a)
If %zzahl7%==23 (set ziffer7=s)
If %zzahl7%==24 (set ziffer7=d)
If %zzahl7%==25 (set ziffer7=f)
If %zzahl7%==26 (set ziffer7=g)
If %zzahl7%==27 (set ziffer7=h)
If %zzahl7%==28 (set ziffer7=j)
If %zzahl7%==29 (set ziffer7=k)
If %zzahl7%==30 (set ziffer7=l)
If %zzahl7%==31 (set ziffer7=n)
If %zzahl7%==32 (set ziffer7=m)
If %zzahl7%==33 (set ziffer7=y)
If %zzahl7%==34 (set ziffer7=x)
If %zzahl7%==35 (set ziffer7=c)
If %zzahl8%==1 (set ziffer8=0)
If %zzahl8%==2 (set ziffer8=1)
If %zzahl8%==3 (set ziffer8=2)
If %zzahl8%==4 (set ziffer8=3)
If %zzahl8%==5 (set ziffer8=4)
If %zzahl8%==6 (set ziffer8=5)
If %zzahl8%==7 (set ziffer8=6)
If %zzahl8%==8 (set ziffer8=7)
If %zzahl8%==9 (set ziffer8=8)
If %zzahl8%==10 (set ziffer8=9)
If %zzahl8%==11 (set ziffer8=q)
If %zzahl8%==12 (set ziffer8=w)
If %zzahl8%==13 (set ziffer8=e)
If %zzahl8%==14 (set ziffer8=r)
If %zzahl8%==15 (set ziffer8=t)
If %zzahl8%==16 (set ziffer8=z)
If %zzahl8%==17 (set ziffer8=u)
If %zzahl8%==18 (set ziffer8=i)
If %zzahl8%==19 (set ziffer8=o)
If %zzahl8%==20 (set ziffer8=p)
If %zzahl8%==21 (set ziffer8=b)
If %zzahl8%==22 (set ziffer8=a)
If %zzahl8%==23 (set ziffer8=s)
If %zzahl8%==24 (set ziffer8=d)
If %zzahl8%==25 (set ziffer8=f)
If %zzahl8%==26 (set ziffer8=g)
If %zzahl8%==27 (set ziffer8=h)
If %zzahl8%==28 (set ziffer8=j)
If %zzahl8%==29 (set ziffer8=k)
If %zzahl8%==30 (set ziffer8=l)
If %zzahl8%==31 (set ziffer8=n)
If %zzahl8%==32 (set ziffer8=m)
If %zzahl8%==33 (set ziffer8=y)
If %zzahl8%==34 (set ziffer8=x)
If %zzahl8%==35 (set ziffer8=c)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%%ziffer5%%ziffer6%%ziffer7%%ziffer8%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto genpw8
:genpw10
title Passwort Generator(10 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
Set /a zzahl7=%random% %% 36 + 1
Set /a zzahl8=%random% %% 36 + 1
Set /a zzahl9=%random% %% 36 + 1
Set /a zzahl10=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)
If %zzahl5%==33 (set ziffer5=y)
If %zzahl5%==34 (set ziffer5=x)
If %zzahl5%==35 (set ziffer5=c)
If %zzahl5%==36 (set ziffer5=v)
If %zzahl6%==1 (set ziffer5=0)
If %zzahl6%==2 (set ziffer6=1)
If %zzahl6%==3 (set ziffer6=2)
If %zzahl6%==4 (set ziffer6=3)
If %zzahl6%==5 (set ziffer6=4)
If %zzahl6%==6 (set ziffer6=5)
If %zzahl6%==7 (set ziffer6=6)
If %zzahl6%==8 (set ziffer6=7)
If %zzahl6%==9 (set ziffer6=8)
If %zzahl6%==10 (set ziffer6=9)
If %zzahl6%==11 (set ziffer6=q)
If %zzahl6%==12 (set ziffer6=w)
If %zzahl6%==13 (set ziffer6=e)
If %zzahl6%==14 (set ziffer6=r)
If %zzahl6%==15 (set ziffer6=t)
If %zzahl6%==16 (set ziffer6=z)
If %zzahl6%==17 (set ziffer6=u)
If %zzahl6%==18 (set ziffer6=i)
If %zzahl6%==19 (set ziffer6=o)
If %zzahl6%==20 (set ziffer6=p)
If %zzahl6%==21 (set ziffer6=b)
If %zzahl6%==22 (set ziffer6=a)
If %zzahl6%==23 (set ziffer6=s)
If %zzahl6%==24 (set ziffer6=d)
If %zzahl6%==25 (set ziffer6=f)
If %zzahl6%==26 (set ziffer6=g)
If %zzahl6%==27 (set ziffer6=h)
If %zzahl6%==28 (set ziffer6=j)
If %zzahl6%==29 (set ziffer6=k)
If %zzahl6%==30 (set ziffer6=l)
If %zzahl6%==31 (set ziffer6=n)
If %zzahl6%==32 (set ziffer6=m)
If %zzahl6%==33 (set ziffer6=y)
If %zzahl6%==34 (set ziffer6=x)
If %zzahl6%==35 (set ziffer6=c)
If %zzahl6%==36 (set ziffer6=v)
If %zzahl7%==1 (set ziffer7=0)
If %zzahl7%==2 (set ziffer7=1)
If %zzahl7%==3 (set ziffer7=2)
If %zzahl7%==4 (set ziffer7=3)
If %zzahl7%==5 (set ziffer7=4)
If %zzahl7%==6 (set ziffer7=5)
If %zzahl7%==7 (set ziffer7=6)
If %zzahl7%==8 (set ziffer7=7)
If %zzahl7%==9 (set ziffer7=8)
If %zzahl7%==10 (set ziffer7=9)
If %zzahl7%==11 (set ziffer7=q)
If %zzahl7%==12 (set ziffer7=w)
If %zzahl7%==13 (set ziffer7=e)
If %zzahl7%==14 (set ziffer7=r)
If %zzahl7%==15 (set ziffer7=t)
If %zzahl7%==16 (set ziffer7=z)
If %zzahl7%==17 (set ziffer7=u)
If %zzahl7%==18 (set ziffer7=i)
If %zzahl7%==19 (set ziffer7=o)
If %zzahl7%==20 (set ziffer7=p)
If %zzahl7%==21 (set ziffer7=b)
If %zzahl7%==22 (set ziffer7=a)
If %zzahl7%==23 (set ziffer7=s)
If %zzahl7%==24 (set ziffer7=d)
If %zzahl7%==25 (set ziffer7=f)
If %zzahl7%==26 (set ziffer7=g)
If %zzahl7%==27 (set ziffer7=h)
If %zzahl7%==28 (set ziffer7=j)
If %zzahl7%==29 (set ziffer7=k)
If %zzahl7%==30 (set ziffer7=l)
If %zzahl7%==31 (set ziffer7=n)
If %zzahl7%==32 (set ziffer7=m)
If %zzahl7%==33 (set ziffer7=y)
If %zzahl7%==34 (set ziffer7=x)
If %zzahl7%==35 (set ziffer7=c)
If %zzahl8%==1 (set ziffer8=0)
If %zzahl8%==2 (set ziffer8=1)
If %zzahl8%==3 (set ziffer8=2)
If %zzahl8%==4 (set ziffer8=3)
If %zzahl8%==5 (set ziffer8=4)
If %zzahl8%==6 (set ziffer8=5)
If %zzahl8%==7 (set ziffer8=6)
If %zzahl8%==8 (set ziffer8=7)
If %zzahl8%==9 (set ziffer8=8)
If %zzahl8%==10 (set ziffer8=9)
If %zzahl8%==11 (set ziffer8=q)
If %zzahl8%==12 (set ziffer8=w)
If %zzahl8%==13 (set ziffer8=e)
If %zzahl8%==14 (set ziffer8=r)
If %zzahl8%==15 (set ziffer8=t)
If %zzahl8%==16 (set ziffer8=z)
If %zzahl8%==17 (set ziffer8=u)
If %zzahl8%==18 (set ziffer8=i)
If %zzahl8%==19 (set ziffer8=o)
If %zzahl8%==20 (set ziffer8=p)
If %zzahl8%==21 (set ziffer8=b)
If %zzahl8%==22 (set ziffer8=a)
If %zzahl8%==23 (set ziffer8=s)
If %zzahl8%==24 (set ziffer8=d)
If %zzahl8%==25 (set ziffer8=f)
If %zzahl8%==26 (set ziffer8=g)
If %zzahl8%==27 (set ziffer8=h)
If %zzahl8%==28 (set ziffer8=j)
If %zzahl8%==29 (set ziffer8=k)
If %zzahl8%==30 (set ziffer8=l)
If %zzahl8%==31 (set ziffer8=n)
If %zzahl8%==32 (set ziffer8=m)
If %zzahl8%==33 (set ziffer8=y)
If %zzahl8%==34 (set ziffer8=x)
If %zzahl8%==35 (set ziffer8=c)
If %zzahl9%==1 (set ziffer9=0)
If %zzahl9%==2 (set ziffer9=1)
If %zzahl9%==3 (set ziffer9=2)
If %zzahl9%==4 (set ziffer9=3)
If %zzahl9%==5 (set ziffer9=4)
If %zzahl9%==6 (set ziffer9=5)
If %zzahl9%==7 (set ziffer9=6)
If %zzahl9%==8 (set ziffer9=7)
If %zzahl9%==9 (set ziffer9=8)
If %zzahl9%==10 (set ziffer9=9)
If %zzahl9%==11 (set ziffer9=q)
If %zzahl9%==12 (set ziffer9=w)
If %zzahl9%==13 (set ziffer9=e)
If %zzahl9%==14 (set ziffer9=r)
If %zzahl9%==15 (set ziffer9=t)
If %zzahl9%==16 (set ziffer9=z)
If %zzahl9%==17 (set ziffer9=u)
If %zzahl9%==18 (set ziffer9=i)
If %zzahl9%==19 (set ziffer9=o)
If %zzahl9%==20 (set ziffer9=p)
If %zzahl9%==21 (set ziffer9=b)
If %zzahl9%==22 (set ziffer9=a)
If %zzahl9%==23 (set ziffer9=s)
If %zzahl9%==24 (set ziffer9=d)
If %zzahl9%==25 (set ziffer9=f)
If %zzahl9%==26 (set ziffer9=g)
If %zzahl9%==27 (set ziffer9=h)
If %zzahl9%==28 (set ziffer9=j)
If %zzahl9%==29 (set ziffer9=k)
If %zzahl9%==30 (set ziffer9=l)
If %zzahl9%==31 (set ziffer9=n)
If %zzahl9%==32 (set ziffer9=m)
If %zzahl9%==33 (set ziffer9=y)
If %zzahl9%==34 (set ziffer9=x)
If %zzahl9%==35 (set ziffer9=c)
If %zzahl10%==1 (set ziffer10=0)
If %zzahl10%==2 (set ziffer10=1)
If %zzahl10%==3 (set ziffer10=2)
If %zzahl10%==4 (set ziffer10=3)
If %zzahl10%==5 (set ziffer10=4)
If %zzahl10%==6 (set ziffer10=5)
If %zzahl10%==7 (set ziffer10=6)
If %zzahl10%==8 (set ziffer10=7)
If %zzahl10%==9 (set ziffer10=8)
If %zzahl10%==10 (set ziffer10=9)
If %zzahl10%==11 (set ziffer10=q)
If %zzahl10%==12 (set ziffer10=w)
If %zzahl10%==13 (set ziffer10=e)
If %zzahl10%==14 (set ziffer10=r)
If %zzahl10%==15 (set ziffer10=t)
If %zzahl10%==16 (set ziffer10=z)
If %zzahl10%==17 (set ziffer10=u)
If %zzahl10%==18 (set ziffer10=i)
If %zzahl10%==19 (set ziffer10=o)
If %zzahl10%==20 (set ziffer10=p)
If %zzahl10%==21 (set ziffer10=b)
If %zzahl10%==22 (set ziffer10=a)
If %zzahl10%==23 (set ziffer10=s)
If %zzahl10%==24 (set ziffer10=d)
If %zzahl10%==25 (set ziffer10=f)
If %zzahl10%==26 (set ziffer10=g)
If %zzahl10%==27 (set ziffer10=h)
If %zzahl10%==28 (set ziffer10=j)
If %zzahl10%==29 (set ziffer10=k)
If %zzahl10%==30 (set ziffer10=l)
If %zzahl10%==31 (set ziffer10=n)
If %zzahl10%==32 (set ziffer10=m)
If %zzahl10%==33 (set ziffer10=y)
If %zzahl10%==34 (set ziffer10=x)
If %zzahl10%==35 (set ziffer10=c)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%%ziffer5%%ziffer6%%ziffer7%%ziffer8%%ziffer9%%ziffer10%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto genpw10
:genpw12
title Passwort Generator(12 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
Set /a zzahl7=%random% %% 36 + 1
Set /a zzahl8=%random% %% 36 + 1
Set /a zzahl9=%random% %% 36 + 1
Set /a zzahl10=%random% %% 36 + 1
Set /a zzahl11=%random% %% 36 + 1
Set /a zzahl12=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)
If %zzahl5%==33 (set ziffer5=y)
If %zzahl5%==34 (set ziffer5=x)
If %zzahl5%==35 (set ziffer5=c)
If %zzahl5%==36 (set ziffer5=v)
If %zzahl6%==1 (set ziffer5=0)
If %zzahl6%==2 (set ziffer6=1)
If %zzahl6%==3 (set ziffer6=2)
If %zzahl6%==4 (set ziffer6=3)
If %zzahl6%==5 (set ziffer6=4)
If %zzahl6%==6 (set ziffer6=5)
If %zzahl6%==7 (set ziffer6=6)
If %zzahl6%==8 (set ziffer6=7)
If %zzahl6%==9 (set ziffer6=8)
If %zzahl6%==10 (set ziffer6=9)
If %zzahl6%==11 (set ziffer6=q)
If %zzahl6%==12 (set ziffer6=w)
If %zzahl6%==13 (set ziffer6=e)
If %zzahl6%==14 (set ziffer6=r)
If %zzahl6%==15 (set ziffer6=t)
If %zzahl6%==16 (set ziffer6=z)
If %zzahl6%==17 (set ziffer6=u)
If %zzahl6%==18 (set ziffer6=i)
If %zzahl6%==19 (set ziffer6=o)
If %zzahl6%==20 (set ziffer6=p)
If %zzahl6%==21 (set ziffer6=b)
If %zzahl6%==22 (set ziffer6=a)
If %zzahl6%==23 (set ziffer6=s)
If %zzahl6%==24 (set ziffer6=d)
If %zzahl6%==25 (set ziffer6=f)
If %zzahl6%==26 (set ziffer6=g)
If %zzahl6%==27 (set ziffer6=h)
If %zzahl6%==28 (set ziffer6=j)
If %zzahl6%==29 (set ziffer6=k)
If %zzahl6%==30 (set ziffer6=l)
If %zzahl6%==31 (set ziffer6=n)
If %zzahl6%==32 (set ziffer6=m)
If %zzahl6%==33 (set ziffer6=y)
If %zzahl6%==34 (set ziffer6=x)
If %zzahl6%==35 (set ziffer6=c)
If %zzahl6%==36 (set ziffer6=v)
If %zzahl7%==1 (set ziffer7=0)
If %zzahl7%==2 (set ziffer7=1)
If %zzahl7%==3 (set ziffer7=2)
If %zzahl7%==4 (set ziffer7=3)
If %zzahl7%==5 (set ziffer7=4)
If %zzahl7%==6 (set ziffer7=5)
If %zzahl7%==7 (set ziffer7=6)
If %zzahl7%==8 (set ziffer7=7)
If %zzahl7%==9 (set ziffer7=8)
If %zzahl7%==10 (set ziffer7=9)
If %zzahl7%==11 (set ziffer7=q)
If %zzahl7%==12 (set ziffer7=w)
If %zzahl7%==13 (set ziffer7=e)
If %zzahl7%==14 (set ziffer7=r)
If %zzahl7%==15 (set ziffer7=t)
If %zzahl7%==16 (set ziffer7=z)
If %zzahl7%==17 (set ziffer7=u)
If %zzahl7%==18 (set ziffer7=i)
If %zzahl7%==19 (set ziffer7=o)
If %zzahl7%==20 (set ziffer7=p)
If %zzahl7%==21 (set ziffer7=b)
If %zzahl7%==22 (set ziffer7=a)
If %zzahl7%==23 (set ziffer7=s)
If %zzahl7%==24 (set ziffer7=d)
If %zzahl7%==25 (set ziffer7=f)
If %zzahl7%==26 (set ziffer7=g)
If %zzahl7%==27 (set ziffer7=h)
If %zzahl7%==28 (set ziffer7=j)
If %zzahl7%==29 (set ziffer7=k)
If %zzahl7%==30 (set ziffer7=l)
If %zzahl7%==31 (set ziffer7=n)
If %zzahl7%==32 (set ziffer7=m)
If %zzahl7%==33 (set ziffer7=y)
If %zzahl7%==34 (set ziffer7=x)
If %zzahl7%==35 (set ziffer7=c)
If %zzahl8%==1 (set ziffer8=0)
If %zzahl8%==2 (set ziffer8=1)
If %zzahl8%==3 (set ziffer8=2)
If %zzahl8%==4 (set ziffer8=3)
If %zzahl8%==5 (set ziffer8=4)
If %zzahl8%==6 (set ziffer8=5)
If %zzahl8%==7 (set ziffer8=6)
If %zzahl8%==8 (set ziffer8=7)
If %zzahl8%==9 (set ziffer8=8)
If %zzahl8%==10 (set ziffer8=9)
If %zzahl8%==11 (set ziffer8=q)
If %zzahl8%==12 (set ziffer8=w)
If %zzahl8%==13 (set ziffer8=e)
If %zzahl8%==14 (set ziffer8=r)
If %zzahl8%==15 (set ziffer8=t)
If %zzahl8%==16 (set ziffer8=z)
If %zzahl8%==17 (set ziffer8=u)
If %zzahl8%==18 (set ziffer8=i)
If %zzahl8%==19 (set ziffer8=o)
If %zzahl8%==20 (set ziffer8=p)
If %zzahl8%==21 (set ziffer8=b)
If %zzahl8%==22 (set ziffer8=a)
If %zzahl8%==23 (set ziffer8=s)
If %zzahl8%==24 (set ziffer8=d)
If %zzahl8%==25 (set ziffer8=f)
If %zzahl8%==26 (set ziffer8=g)
If %zzahl8%==27 (set ziffer8=h)
If %zzahl8%==28 (set ziffer8=j)
If %zzahl8%==29 (set ziffer8=k)
If %zzahl8%==30 (set ziffer8=l)
If %zzahl8%==31 (set ziffer8=n)
If %zzahl8%==32 (set ziffer8=m)
If %zzahl8%==33 (set ziffer8=y)
If %zzahl8%==34 (set ziffer8=x)
If %zzahl8%==35 (set ziffer8=c)
If %zzahl9%==1 (set ziffer9=0)
If %zzahl9%==2 (set ziffer9=1)
If %zzahl9%==3 (set ziffer9=2)
If %zzahl9%==4 (set ziffer9=3)
If %zzahl9%==5 (set ziffer9=4)
If %zzahl9%==6 (set ziffer9=5)
If %zzahl9%==7 (set ziffer9=6)
If %zzahl9%==8 (set ziffer9=7)
If %zzahl9%==9 (set ziffer9=8)
If %zzahl9%==10 (set ziffer9=9)
If %zzahl9%==11 (set ziffer9=q)
If %zzahl9%==12 (set ziffer9=w)
If %zzahl9%==13 (set ziffer9=e)
If %zzahl9%==14 (set ziffer9=r)
If %zzahl9%==15 (set ziffer9=t)
If %zzahl9%==16 (set ziffer9=z)
If %zzahl9%==17 (set ziffer9=u)
If %zzahl9%==18 (set ziffer9=i)
If %zzahl9%==19 (set ziffer9=o)
If %zzahl9%==20 (set ziffer9=p)
If %zzahl9%==21 (set ziffer9=b)
If %zzahl9%==22 (set ziffer9=a)
If %zzahl9%==23 (set ziffer9=s)
If %zzahl9%==24 (set ziffer9=d)
If %zzahl9%==25 (set ziffer9=f)
If %zzahl9%==26 (set ziffer9=g)
If %zzahl9%==27 (set ziffer9=h)
If %zzahl9%==28 (set ziffer9=j)
If %zzahl9%==29 (set ziffer9=k)
If %zzahl9%==30 (set ziffer9=l)
If %zzahl9%==31 (set ziffer9=n)
If %zzahl9%==32 (set ziffer9=m)
If %zzahl9%==33 (set ziffer9=y)
If %zzahl9%==34 (set ziffer9=x)
If %zzahl9%==35 (set ziffer9=c)
If %zzahl10%==1 (set ziffer10=0)
If %zzahl10%==2 (set ziffer10=1)
If %zzahl10%==3 (set ziffer10=2)
If %zzahl10%==4 (set ziffer10=3)
If %zzahl10%==5 (set ziffer10=4)
If %zzahl10%==6 (set ziffer10=5)
If %zzahl10%==7 (set ziffer10=6)
If %zzahl10%==8 (set ziffer10=7)
If %zzahl10%==9 (set ziffer10=8)
If %zzahl10%==10 (set ziffer10=9)
If %zzahl10%==11 (set ziffer10=q)
If %zzahl10%==12 (set ziffer10=w)
If %zzahl10%==13 (set ziffer10=e)
If %zzahl10%==14 (set ziffer10=r)
If %zzahl10%==15 (set ziffer10=t)
If %zzahl10%==16 (set ziffer10=z)
If %zzahl10%==17 (set ziffer10=u)
If %zzahl10%==18 (set ziffer10=i)
If %zzahl10%==19 (set ziffer10=o)
If %zzahl10%==20 (set ziffer10=p)
If %zzahl10%==21 (set ziffer10=b)
If %zzahl10%==22 (set ziffer10=a)
If %zzahl10%==23 (set ziffer10=s)
If %zzahl10%==24 (set ziffer10=d)
If %zzahl10%==25 (set ziffer10=f)
If %zzahl10%==26 (set ziffer10=g)
If %zzahl10%==27 (set ziffer10=h)
If %zzahl10%==28 (set ziffer10=j)
If %zzahl10%==29 (set ziffer10=k)
If %zzahl10%==30 (set ziffer10=l)
If %zzahl10%==31 (set ziffer10=n)
If %zzahl10%==32 (set ziffer10=m)
If %zzahl10%==33 (set ziffer10=y)
If %zzahl10%==34 (set ziffer10=x)
If %zzahl10%==35 (set ziffer10=c)
If %zzahl11%==1 (set ziffer11=0)
If %zzahl11%==2 (set ziffer11=1)
If %zzahl11%==3 (set ziffer11=2)
If %zzahl11%==4 (set ziffer11=3)
If %zzahl11%==5 (set ziffer11=4)
If %zzahl11%==6 (set ziffer11=5)
If %zzahl11%==7 (set ziffer11=6)
If %zzahl11%==8 (set ziffer11=7)
If %zzahl11%==9 (set ziffer11=8)
If %zzahl11%==10 (set ziffer11=9)
If %zzahl11%==11 (set ziffer11=q)
If %zzahl11%==12 (set ziffer11=w)
If %zzahl11%==13 (set ziffer11=e)
If %zzahl11%==14 (set ziffer11=r)
If %zzahl11%==15 (set ziffer11=t)
If %zzahl11%==16 (set ziffer11=z)
If %zzahl11%==17 (set ziffer11=u)
If %zzahl11%==18 (set ziffer11=i)
If %zzahl11%==19 (set ziffer11=o)
If %zzahl11%==20 (set ziffer11=p)
If %zzahl11%==21 (set ziffer11=b)
If %zzahl11%==22 (set ziffer11=a)
If %zzahl11%==23 (set ziffer11=s)
If %zzahl11%==24 (set ziffer11=d)
If %zzahl11%==25 (set ziffer11=f)
If %zzahl11%==26 (set ziffer11=g)
If %zzahl11%==27 (set ziffer11=h)
If %zzahl11%==28 (set ziffer11=j)
If %zzahl11%==29 (set ziffer11=k)
If %zzahl11%==30 (set ziffer11=l)
If %zzahl11%==31 (set ziffer11=n)
If %zzahl11%==32 (set ziffer11=m)
If %zzahl11%==33 (set ziffer11=y)
If %zzahl11%==34 (set ziffer11=x)
If %zzahl11%==35 (set ziffer11=c)
If %zzahl12%==1 (set ziffer12=0)
If %zzahl12%==2 (set ziffer12=1)
If %zzahl12%==3 (set ziffer12=2)
If %zzahl12%==4 (set ziffer12=3)
If %zzahl12%==5 (set ziffer12=4)
If %zzahl12%==6 (set ziffer12=5)
If %zzahl12%==7 (set ziffer12=6)
If %zzahl12%==8 (set ziffer12=7)
If %zzahl12%==9 (set ziffer12=8)
If %zzahl12%==10 (set ziffer12=9)
If %zzahl12%==11 (set ziffer12=q)
If %zzahl12%==12 (set ziffer12=w)
If %zzahl12%==13 (set ziffer12=e)
If %zzahl12%==14 (set ziffer12=r)
If %zzahl12%==15 (set ziffer12=t)
If %zzahl12%==16 (set ziffer12=z)
If %zzahl12%==17 (set ziffer12=u)
If %zzahl12%==18 (set ziffer12=i)
If %zzahl12%==19 (set ziffer12=o)
If %zzahl12%==20 (set ziffer12=p)
If %zzahl12%==21 (set ziffer12=b)
If %zzahl12%==22 (set ziffer12=a)
If %zzahl12%==23 (set ziffer12=s)
If %zzahl12%==24 (set ziffer12=d)
If %zzahl12%==25 (set ziffer12=f)
If %zzahl12%==26 (set ziffer12=g)
If %zzahl12%==27 (set ziffer12=h)
If %zzahl12%==28 (set ziffer12=j)
If %zzahl12%==29 (set ziffer12=k)
If %zzahl12%==30 (set ziffer12=l)
If %zzahl12%==31 (set ziffer12=n)
If %zzahl12%==32 (set ziffer12=m)
If %zzahl12%==33 (set ziffer12=y)
If %zzahl12%==34 (set ziffer12=x)
If %zzahl12%==35 (set ziffer12=c)
echo %ziffer1%%ziffer2%%ziffer3%%ziffer4%%ziffer5%%ziffer6%%ziffer7%%ziffer8%%ziffer9%%ziffer10%%ziffer11%%ziffer12%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto genpw12
:genpw16
title Passwort Generator(16 Stellig)
Set /a zzahl1=%random% %% 36 + 1
Set /a zzahl2=%random% %% 36 + 1
Set /a zzahl3=%random% %% 36 + 1
Set /a zzahl4=%random% %% 36 + 1
Set /a zzahl5=%random% %% 36 + 1
Set /a zzahl6=%random% %% 36 + 1
Set /a zzahl7=%random% %% 36 + 1
Set /a zzahl8=%random% %% 36 + 1
Set /a zzahl9=%random% %% 36 + 1
Set /a zzahl10=%random% %% 36 + 1
Set /a zzahl11=%random% %% 36 + 1
Set /a zzahl12=%random% %% 36 + 1
Set /a zzahl13=%random% %% 36 + 1
Set /a zzahl14=%random% %% 36 + 1
Set /a zzahl15=%random% %% 36 + 1
Set /a zzahl16=%random% %% 36 + 1
If %zzahl1%==1 (set ziffer1=0)
If %zzahl1%==2 (set ziffer1=1)
If %zzahl1%==3 (set ziffer1=2)
If %zzahl1%==4 (set ziffer1=3)
If %zzahl1%==5 (set ziffer1=4)
If %zzahl1%==6 (set ziffer1=5)
If %zzahl1%==7 (set ziffer1=6)
If %zzahl1%==8 (set ziffer1=7)
If %zzahl1%==9 (set ziffer1=8)
If %zzahl1%==10 (set ziffer1=9)
If %zzahl1%==11 (set ziffer1=q)
If %zzahl1%==12 (set ziffer1=w)
If %zzahl1%==13 (set ziffer1=e)
If %zzahl1%==14 (set ziffer1=r)
If %zzahl1%==15 (set ziffer1=t)
If %zzahl1%==16 (set ziffer1=z)
If %zzahl1%==17 (set ziffer1=u)
If %zzahl1%==18 (set ziffer1=i)
If %zzahl1%==19 (set ziffer1=o)
If %zzahl1%==20 (set ziffer1=p)
If %zzahl1%==21 (set ziffer1=b)
If %zzahl1%==22 (set ziffer1=a)
If %zzahl1%==23 (set ziffer1=s)
If %zzahl1%==24 (set ziffer1=d)
If %zzahl1%==25 (set ziffer1=f)
If %zzahl1%==26 (set ziffer1=g)
If %zzahl1%==27 (set ziffer1=h)
If %zzahl1%==28 (set ziffer1=j)
If %zzahl1%==29 (set ziffer1=k)
If %zzahl1%==30 (set ziffer1=l)
If %zzahl1%==31 (set ziffer1=n)
If %zzahl1%==32 (set ziffer1=m)
If %zzahl1%==33 (set ziffer1=y)
If %zzahl1%==34 (set ziffer1=x)
If %zzahl1%==35 (set ziffer1=c)
If %zzahl1%==36 (set ziffer1=v)
If %zzahl2%==1 (set ziffer1=0)
If %zzahl2%==2 (set ziffer1=1)
If %zzahl2%==3 (set ziffer1=2)
If %zzahl2%==4 (set ziffer1=3)
If %zzahl2%==5 (set ziffer1=4)
If %zzahl2%==6 (set ziffer1=5)
If %zzahl2%==7 (set ziffer1=6)
If %zzahl2%==8 (set ziffer1=7)
If %zzahl2%==9 (set ziffer1=8)
If %zzahl2%==10 (set ziffer2=9)
If %zzahl2%==11 (set ziffer2=q)
If %zzahl2%==12 (set ziffer2=w)
If %zzahl2%==13 (set ziffer2=e)
If %zzahl2%==14 (set ziffer2=r)
If %zzahl2%==15 (set ziffer2=t)
If %zzahl2%==16 (set ziffer2=z)
If %zzahl2%==17 (set ziffer2=u)
If %zzahl2%==18 (set ziffer2=i)
If %zzahl2%==19 (set ziffer2=o)
If %zzahl2%==20 (set ziffer2=p)
If %zzahl2%==21 (set ziffer2=b)
If %zzahl2%==22 (set ziffer2=a)
If %zzahl2%==23 (set ziffer2=s)
If %zzahl2%==24 (set ziffer2=d)
If %zzahl2%==25 (set ziffer2=f)
If %zzahl2%==26 (set ziffer2=g)
If %zzahl2%==27 (set ziffer2=h)
If %zzahl2%==28 (set ziffer2=j)
If %zzahl2%==29 (set ziffer2=k)
If %zzahl2%==30 (set ziffer2=l)
If %zzahl2%==31 (set ziffer2=n)
If %zzahl2%==32 (set ziffer2=m)
If %zzahl2%==33 (set ziffer2=y)
If %zzahl2%==34 (set ziffer2=x)
If %zzahl2%==35 (set ziffer2=c)
If %zzahl2%==36 (set ziffer2=v)
If %zzahl3%==1 (set ziffer3=0)
If %zzahl3%==2 (set ziffer3=1)
If %zzahl3%==3 (set ziffer3=2)
If %zzahl3%==4 (set ziffer3=3)
If %zzahl3%==5 (set ziffer3=4)
If %zzahl3%==6 (set ziffer3=5)
If %zzahl3%==7 (set ziffer3=6)
If %zzahl3%==8 (set ziffer3=7)
If %zzahl3%==9 (set ziffer3=8)
If %zzahl3%==10 (set ziffer3=9)
If %zzahl3%==11 (set ziffer3=q)
If %zzahl3%==12 (set ziffer3=w)
If %zzahl3%==13 (set ziffer3=e)
If %zzahl3%==14 (set ziffer3=r)
If %zzahl3%==15 (set ziffer3=t)
If %zzahl3%==16 (set ziffer3=z)
If %zzahl3%==17 (set ziffer3=u)
If %zzahl3%==18 (set ziffer3=i)
If %zzahl3%==19 (set ziffer3=o)
If %zzahl3%==20 (set ziffer3=p)
If %zzahl3%==21 (set ziffer3=b)
If %zzahl3%==22 (set ziffer3=a)
If %zzahl3%==23 (set ziffer3=s)
If %zzahl3%==24 (set ziffer3=d)
If %zzahl3%==25 (set ziffer3=f)
If %zzahl3%==26 (set ziffer3=g)
If %zzahl3%==27 (set ziffer3=h)
If %zzahl3%==28 (set ziffer3=j)
If %zzahl3%==29 (set ziffer3=k)
If %zzahl3%==30 (set ziffer3=l)
If %zzahl3%==31 (set ziffer3=n)
If %zzahl3%==32 (set ziffer3=m)
If %zzahl3%==33 (set ziffer3=y)
If %zzahl3%==34 (set ziffer3=x)
If %zzahl3%==35 (set ziffer3=c)
If %zzahl3%==36 (set ziffer3=v)
If %zzahl4%==1 (set ziffer4=0)
If %zzahl4%==2 (set ziffer4=1)
If %zzahl4%==3 (set ziffer4=2)
If %zzahl4%==4 (set ziffer4=3)
If %zzahl4%==5 (set ziffer4=4)
If %zzahl4%==6 (set ziffer4=5)
If %zzahl4%==7 (set ziffer4=6)
If %zzahl4%==8 (set ziffer4=7)
If %zzahl4%==9 (set ziffer4=8)
If %zzahl4%==10 (set ziffer4=9)
If %zzahl4%==11 (set ziffer4=q)
If %zzahl4%==12 (set ziffer4=w)
If %zzahl4%==13 (set ziffer4=e)
If %zzahl4%==14 (set ziffer4=r)
If %zzahl4%==15 (set ziffer4=t)
If %zzahl4%==16 (set ziffer4=z)
If %zzahl4%==17 (set ziffer4=u)
If %zzahl4%==18 (set ziffer4=i)
If %zzahl4%==19 (set ziffer4=o)
If %zzahl4%==20 (set ziffer4=p)
If %zzahl4%==21 (set ziffer4=b)
If %zzahl4%==22 (set ziffer4=a)
If %zzahl4%==23 (set ziffer4=s)
If %zzahl4%==24 (set ziffer4=d)
If %zzahl4%==25 (set ziffer4=f)
If %zzahl4%==26 (set ziffer4=g)
If %zzahl4%==27 (set ziffer4=h)
If %zzahl4%==28 (set ziffer4=j)
If %zzahl4%==29 (set ziffer4=k)
If %zzahl4%==30 (set ziffer4=l)
If %zzahl4%==31 (set ziffer4=n)
If %zzahl4%==32 (set ziffer4=m)
If %zzahl4%==33 (set ziffer4=y)
If %zzahl4%==34 (set ziffer4=x)
If %zzahl4%==35 (set ziffer4=c)
If %zzahl4%==36 (set ziffer4=v)
If %zzahl5%==1 (set ziffer5=0)
If %zzahl5%==2 (set ziffer5=1)
If %zzahl5%==3 (set ziffer5=2)
If %zzahl5%==4 (set ziffer5=3)
If %zzahl5%==5 (set ziffer5=4)
If %zzahl5%==6 (set ziffer5=5)
If %zzahl5%==7 (set ziffer5=6)
If %zzahl5%==8 (set ziffer5=7)
If %zzahl5%==9 (set ziffer5=8)
If %zzahl5%==10 (set ziffer5=9)
If %zzahl5%==11 (set ziffer5=q)
If %zzahl5%==12 (set ziffer5=w)
If %zzahl5%==13 (set ziffer5=e)
If %zzahl5%==14 (set ziffer5=r)
If %zzahl5%==15 (set ziffer5=t)
If %zzahl5%==16 (set ziffer5=z)
If %zzahl5%==17 (set ziffer5=u)
If %zzahl5%==18 (set ziffer5=i)
If %zzahl5%==19 (set ziffer5=o)
If %zzahl5%==20 (set ziffer5=p)
If %zzahl5%==21 (set ziffer5=b)
If %zzahl5%==22 (set ziffer5=a)
If %zzahl5%==23 (set ziffer5=s)
If %zzahl5%==24 (set ziffer5=d)
If %zzahl5%==25 (set ziffer5=f)
If %zzahl5%==26 (set ziffer5=g)
If %zzahl5%==27 (set ziffer5=h)
If %zzahl5%==28 (set ziffer5=j)
If %zzahl5%==29 (set ziffer5=k)
If %zzahl5%==30 (set ziffer5=l)
If %zzahl5%==31 (set ziffer5=n)
If %zzahl5%==32 (set ziffer5=m)

Geht leider nicht alles posten, die letzten 394 Zeilel fehlen jetzt,dafür hab den vollständigen Quellcode zum Download bereit gestellt
Hier der link: http://www.4shared.com/file/B2OM-66P/Passwort_Generator_20.html
Mehr meiner Projekte findet iht moch auf meiner Hompage unter: http://julian57.de.tl/Meine-Projekte.htm
wäre über ein Feedback sehr dankbar

mfg

Julian57
Kommentar vom Moderator Biber am Oct 19, 2010 um 19:28:10 Uhr
- - - erstmal von "Anleitung" auf "Frage" umgewidmet. Mal sehen, was draus wird...

Content-Key: 153380

Url: https://administrator.de/contentid/153380

Printed on: April 19, 2024 at 11:04 o'clock

Member: Friemler
Friemler Oct 19, 2010, updated at Oct 18, 2012 at 16:43:50 (UTC)
Goto Top
Hallo Julian,

Dein Code ist nicht gerade sehr intelligent. Ich habe Dir ja gerade eben in diesem Thread Deinen Generator für Zufallsbegriffe etwas eingedampft. Hole Dir doch mal aus diesem Code ein paar Anregungen, um das Monster in diesem Thread hier ETWAS zu verkürzen. Ist schon eine Zumutung, sowas zu lesen. Programmierer sind tippfaul, aber nicht denkfaul.

Bibers Klickfinger ist schon ganz wund vom verschieben ähnlich qualifizierter Beiträge von anderen Ferienkindern in den Papierkorb face-wink.

Gruß
Friemler
Member: Biber
Biber Oct 19, 2010 at 19:22:05 (UTC)
Goto Top
Moin Julian,

willkommen im Forum.
Auch ich beschäftige mich hin und wieder mit kleinen Batchschnipseln - allerdings habe ich eine Tapete in dieser Länge noch nie selbst geschrieben.
Bestenfalls per Batch schreiben lassen.

Wie du ja bemerkt hast, lassen sich Code-Schnipsel nur bis zu einer Zeilenanzahl hier posten, die wundersamer Weise dem Jahr der Konformation von Uschi Glas entspricht.

Das haben wir getan, um allen Codern einen kleinen Anreiz zu bieten, doch die Hauptarbeit beim Schnipselzusammenbraten nicht mit den Fingerkuppen auf der Tastatur sondern vielmehr weiter oben, zwischen den Synapsen, durchzuführen.


Friemler hat ja schon einen Ansatz für ein erstes Durchharken geliefert.
Ich denke, wenn wir den Schnipsel als Version 0.003beta ansehen, dann können wir ja jetzt mal die Kuh zum Fliegen bringen.

Mein Ansatz wäre zwar eher gewesen, einen 3-Zeiler hier abzuliefern, der den Code des Schnipsels oben generiert, aber naja... face-wink ->Friemler war vor mir da.

Übrigens, in sehr großen Abständen entfährt mir sehr, sehr selten beim Lesen von Fremd-Code der Ausspruch:
"Ich wünschte mir nach dem Lesen wenigen Zeilen nichts sehnlicher, als sofort zu erblinden und für immer das Gedächtnis zu verlieren."

Ich glaube, vorhin ist mir der auch herausgerutscht, bevor ich ohnmächtig wurde.

Spass beiseite ... lass uns hier gemeinsam einen Code entwickeln, den wir in diesem Forum auch als Anleitung stehen lassen können.

Bis dahin stufe ich mal um von "Anleitung" auf "Frage" (nämlich: Wie erzeuge ich aus Fliesstext einen Algorithmus?).

Denn im jetzigen Zustand.... ich sach' ma' so. Auch wenn sie dir nie die Ohren volljammern werden - Bätche haben doch auch Gefühle..

Grüße
Biber
Member: rubberman
rubberman Oct 19, 2010 at 20:56:25 (UTC)
Goto Top
Hallo Julian57.

Für deinen Code habe ich ein Kürzel tl;dr face-wink

Nur als Anregung: Wie man Zufallszahlen in einem bestimmten Range erstellt ist dir ja bekannt. Dass man daraus ohne große Umstände auch ASCII Zeichen erzeugen kann, war mir bis vor kurzem auch noch neu. Du kannst %=ExitCodeASCII% statt %errorlevel% nutzen, solange die Zahl sich im Bereich der druckbaren ASCII Zeichen bewegt.
Beispiel:
@echo off &setlocal
:: irgendein Großbuchstabe:
set /a zahl=%random% %% 26 + 65
cmd /c exit %zahl%
echo %=ExitCodeASCII%
pause

Grüße
rubberman
Member: Friemler
Friemler Oct 19, 2010 at 22:19:28 (UTC)
Goto Top
Hallo rubberman,

interessantes Feature, dann war diese Batch-Tapete sogar noch zu etwas gut. Danke.

Ist zwar Off Topic, aber auch interessant: Beim googeln nach %=ExitCodeASCII% habe ich noch folgenden Schnipsel gefunden, einen Dec2Hex-Converter, der auf der Variablen %=ExitCode% basiert. Diese Variable enthält den Exit-Code als 32-Bit Wert in Hex-String-Form mit führenden Nullen.
@echo off

call :Dec2Hex 33 ret
echo.%ret%

exit /b


:Dec2Hex
"%ComSpec%" /d /c exit /b %~1 >nul  

for /f "eol=0 delims=0 tokens=*" %%# in ("%=ExitCode%") do (  
  if not "%%#"=="" (set %~2=0x%%#) else (set %~2=0x0)  
)

exit /b

Alternative:
:Dec2Hex
set %~2=0x0
for /f "tokens=1* delims=0=" %%a in ('"%comspec% /c exit /b %1 & set;|find "^=ExitCode^=""') do Set %~2=0x%%b  
exit /b

Gruß
Friemler
Member: Julian57
Julian57 Oct 20, 2010 at 08:21:51 (UTC)
Goto Top
Hallo Alle,
das mit dem "%=ExitCodeASCII%" wusste ich noch nicht. Sollte mich jetzt mal dran machen und meinen Code ein bischen kürtzen. Danke an alle
mfg
Julian57
Member: Julian57
Julian57 Oct 20, 2010 at 18:30:19 (UTC)
Goto Top
Hallo,
komm irgendwie nicht weiter!!!
wie kann man den zufällige Zeichenfolgen erstellen mit "%=ExitCodeASCII%", am Besten mit Zahlen und Buchstaben,
wobei das mit den Zahlen woll nicht geht,lass mich aber auch gerne eines besseren beleren, die Buchstaben sollten aber klein geschrieben sein.Wäre über eine kleine Hilfe stellung sehr dankbar.
mfg
Julian57
Member: rubberman
rubberman Oct 20, 2010 at 20:00:27 (UTC)
Goto Top
Hallo Julian57.

Also erstmal wirst du wohl eine ASCII-Tabelle brauchen, damit du weißt, welche Zahl mit welchem Zeichen korrespondiert.
Natürlich sind auch Ziffern nichts anderes als ASCII Zeichen und du könntest sie auf gleichem Wege erzeugen. Ist aber unsinnig, da du über %random% und die Modulo-Funktion viel einfacher an die Sache rankommst.

OK, deine Tapete erzeugt ja Zeichenfolgen aus Ziffern und Kleinbuchstaben. Die Anzahl der möglichen Zeichen beläuft sich also auf 10 Ziffern + 26 Buchstaben = 36.

Meine Herangehensweise währe so:
Du erzeugst eine Zufallszahl zwischen 0 und 35 (dann sind wir wieder bei den 36 Möglichkeiten). Nun prüfst du, ob die Zahl kleiner als 10 ist.

Falls ja, nimmst du sie direkt als Ziffer an.

Falls nein, kommt %=ExitCodeASCII% ins Spiel. Wenn du in die ASCII Tabelle schaust, stellst du fest, dass die Kleinbuchstaben bei 97 beginnen. Da die Zahl nun aber schon min. 10 oder größer ist, addieren wir nur noch 87 und nutzen diese Zahl als Returnwert.

Wenn du das ganze nun noch in eine FOR /L Schleife einpackst, kannst du auch gleich noch bestimmen, wie lang deine Zeichenfolge sein soll.

Beispiel:
@echo off &setlocal enabledelayedexpansion

set "laenge=8"  

for /l %%i in (1,1,%laenge%) do (
  set /a zahl=!random! %% 36
  if !zahl! lss 10 (
    set "pass=!pass!!zahl!"  
  ) else (
    set /a zahl+=87
    cmd /c exit !zahl!
    set "pass=!pass!!=ExitCodeASCII!"  
  )
)

echo %pass%
pause

Nun klinke ich mich aber aus. Das Anpassen an deine Ansprüche und das Verpacken in irgendwelche Menüstrukturen überlasse ich dir.

Grüße
rubberman
Member: Julian57
Julian57 Oct 20, 2010 at 20:27:45 (UTC)
Goto Top
Hallo Rubberman,
danke für den Quellcode und die tolle Erklärung
hab meinen Quellcode jetzt eingeschmolzen:
@echo off &setlocal enabledelayedexpansion
mode 58
:Hauptmenu
title Hauptmenu
echo.
echo **Hauptmenu**
echo.
echo Wähle Aktion aus:
echo [1]Passwortgenerator starten
echo [2]Info zu Programm
echo [3]Mehr Programme
echo [4]Schliessen
set /P whm=
If %whm%==1 (goto PWGenerator)
If %whm%==2 (goto Info)
If %whm%==3 (start www.Julian57.de.tl & cls & goto Hauptmenu)
If %whm%==4 (exit)
cls
goto Hauptmenu
:Info
title Informationen zu Programm
echo  _____________________________________________
echo.
echo  ** Inforamtionen zu Programm **            
echo.                                          
echo  Title:           Passwort-Generator               
echo.                                          
echo  Author:          Julian Schmidt         
echo.                                          
echo  Version:         3.0.0              
echo.
echo  Erstellungdatum: Son 10.10.2010
echo.
echo  Beschreibung:    Generieren von Passwoertern
echo  _____________________________________________
echo.
Pause
cls
goto Hauptmenu
:PWGenerator
cls
title Passwort Generator
echo.
echo **Auswahlmenu**
echo.
echo Generieren von:
echo ---------------------------------------------------------
echo. NR. Art                 Länge       Zeichenfolge
echo ---------------------------------------------------------
echo  [1] PIN                 4 Stellig   nur Zahlen
echo.
echo  [2] Internet Passwort1  6 Stellig   Zahlen u. Buchstaben
echo.
echo  [3] Internet Passwort2  7 Stellig   Zahlen u. Buchstaben
echo.
echo  [4] Internet Passwort3  8 Stellig   Zahlen u. Buchstaben
echo.
echo  [5] Internet Passwort4  10 Stellig  Zahlen u. Buchstaben
echo.
echo  [6] Server Passwort1    12 Stellig  Zahlen u. Buchstaben
echo.
echo  [7] Server Passwort2    16 Stellig  Zahlen u. Buchstaben
echo ---------------------------------------------------------
echo Optionen:
echo [exit]Schliessen
echo [reset]Zurueck zum Hauptmenu
set /P PWaw=
If %PWaw%==1 (echo Wie viele PINS wollen sie Generieren? & set /p counter=& echo. & echo Generierte PINs: & echo. & set Zähler= 0 & goto GenPINs)
If %PWaw%==2 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=6" & goto generate)  
If %PWaw%==3 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=7" & goto generate)  
If %PWaw%==4 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=8" & goto generate)  
If %PWaw%==5 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=10" & goto generate)  
If %PWaw%==6 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & set "laenge=12" & goto generate)  
If %PWaw%==7 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & set "laenge=16" & goto generate)  
If %PWaw%==exit (exit)
If %PWaw%==reset (cls & goto Hauptmenu)
cls
goto PWGenerator
:GenPINs
title PIN Genertaor (4-Stellig)
Set /a zz1=%random% %% 10
Set /a zz2=%random% %% 10
Set /a zz3=%random% %% 10
Set /a zz4=%random% %% 10
echo %zz1%%zz2%%zz3%%zz4%
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto GenPINs
:generate
title Passwort Generator(%laenge% Stellig)
for /l %%i in (1,1,%laenge%) do (
  set /a zahl=!random! %% 36
  if !zahl! lss 10 (
    set "pass=!pass!!zahl!"  
  ) else (
    set /a zahl+=87
    cmd /c exit !zahl!
    set "pass=!pass!!=ExitCodeASCII!"  
  )
)
echo %pass%
set pass=
set /a Zähler=%Zähler%+1
if %Zähler%==%counter% (echo. & Pause & cls & goto PWGenerator)
goto generate
Ich denke hierbei kann man es belassen
Und den Thread damit schliessen
mfg
Julian57
Member: Friemler
Friemler Oct 20, 2010 at 22:47:17 (UTC)
Goto Top
Hallo Julian,

ich hätte da noch eine Alternative, die etwas schneller läuft, denn die Methode mit %=ExitCodeASCII% ist durch den häufigen Aufruf von CMD ziemlich langsam. Hier wird quasi ein Array simuliert und die erzeugte Zufallszahl als Index zum Zugriff auf ein Array-Element (einen Buchstaben) benutzt. Die Ausgabe erfolgt mit
<NUL set /p "=!cipher!"
was einen Text ausgibt, ohne danach einen Zeilenvorschub zu erzeugen.

@echo off

setlocal

set "counter=2"  
set "width=10"  

call :GenPWsAlNum %counter% %width%
exit /b


:GenPWsAlNum
  setlocal enabledelayedexpansion
  title Passwort Generator (%2-stellig)

  set "Alphabet=A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"  

  for /l %%i in (1,1,%1) do (
    (for /l %%j in (1,1,%2) do (
       set /a "cipher=!random! %% 36"  
       if !cipher! leq 9 (
         <NUL set /p "=!cipher!"  
       ) else (
         set /a "cipher-=9"  
         call :PrintArrayItem !cipher!
       )
    )) & echo.
  )

  endlocal
exit /b


:PrintArrayItem
  for /f "tokens=%1" %%c in ("%Alphabet%") do <NUL set /p "=%%c"  
exit /b

Übrigens musst Du in den Zeilen 81 bis 84 Deines neuen Skripts die Modulo-Operation mit 10 ausführen, sonst enthalten die PINs nur die Zahlen 0 bis 8.

Könnte man dann auch so optimieren:
:GenPINs
title PIN Generator (4-Stellig)
setlocal enabledelayedexpansion
for /l %%i in (1,1,%counter%) do (
  (for /l %%j in (1,1,4) do (set /a "zz%%j=!random! %% 10" & <NUL set /p "=!zz%%j!")) & echo.  
)
endlocal
echo. & Pause & cls & goto PWGenerator

Gruß
Friemler
Member: Julian57
Julian57 Oct 21, 2010 at 07:36:28 (UTC)
Goto Top
Hallo Friemler,
danke für deine Antwort, generiert jetz viel schneller,danke dir
Hier mal wieder mein Code
@echo off
setlocal
mode 58
:Hauptmenu
title Hauptmenu
echo.
echo **Hauptmenu**
echo.
echo Wähle Aktion aus:
echo [1]Passwortgenerator starten
echo [2]Info zu Programm
echo [3]Mehr Programme
echo [4]Schliessen
set /P whm=
If %whm%==1 (goto PWGenerator)
If %whm%==2 (goto Info)
If %whm%==3 (start www.Julian57.de.tl & cls & goto Hauptmenu)
If %whm%==4 (exit)
cls
goto Hauptmenu
:Info
title Informationen zu Programm
echo  _____________________________________________
echo.
echo  ** Inforamtionen zu Programm **            
echo.                                          
echo  Title:           Passwort-Generator               
echo.                                          
echo  Author:          Julian Schmidt         
echo.                                          
echo  Version:         3.0.0              
echo.
echo  Erstellungdatum: Son 10.10.2010
echo.
echo  Beschreibung:    Generieren von Passwoertern
echo  _____________________________________________
echo.
Pause
cls
goto Hauptmenu
:PWGenerator
cls
title Passwort Generator
echo.
echo **Auswahlmenu**
echo.
echo Generieren von:
echo ---------------------------------------------------------
echo. NR. Art                 Länge       Zeichenfolge
echo ---------------------------------------------------------
echo  [1] PIN                 4 Stellig   nur Zahlen
echo.
echo  [2] Internet Passwort1  6 Stellig   Zahlen u. Buchstaben
echo.
echo  [3] Internet Passwort2  7 Stellig   Zahlen u. Buchstaben
echo.
echo  [4] Internet Passwort3  8 Stellig   Zahlen u. Buchstaben
echo.
echo  [5] Internet Passwort4  10 Stellig  Zahlen u. Buchstaben
echo.
echo  [6] Server Passwort1    12 Stellig  Zahlen u. Buchstaben
echo.
echo  [7] Server Passwort2    16 Stellig  Zahlen u. Buchstaben
echo ---------------------------------------------------------
echo Optionen:
echo [exit]Schliessen
echo [reset]Zurueck zum Hauptmenu
set /P PWaw=
If %PWaw%==1 (echo Wie viele PINS wollen sie Generieren? & set /p counter=& echo. & echo Generierte PINs: & echo. & set Zähler= 0 & goto GenPINs)
If %PWaw%==2 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=6" & goto generate)  
If %PWaw%==3 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=7" & goto generate)  
If %PWaw%==4 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=8" & goto generate)  
If %PWaw%==5 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Passwoerter: & echo. & set Zähler= 0 & set "laenge=10" & goto generate)  
If %PWaw%==6 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & set "laenge=12" & goto generate)  
If %PWaw%==7 (echo Wie viele Passwoerter wollen sie Generieren? & set /p counter= & echo. & echo Generierte Server Passwoerter: & echo. & set Zähler= 0 & set "laenge=16" & goto generate)  
If %PWaw%==exit (exit)
If %PWaw%==reset (cls & goto Hauptmenu)
cls
goto PWGenerator
:GenPINs
title PIN Generator (4-Stellig)
setlocal enabledelayedexpansion
for /l %%i in (1,1,%counter%) do (
  (for /l %%j in (1,1,4) do (set /a "zz%%j=!random! %% 10" & <NUL set /p "=!zz%%j!")) & echo.  
)
endlocal
echo. & Pause & cls & goto PWGenerator
:generate
title Passwort Generator(%laenge% Stellig)
call :GenPWsAlNum %counter% %laenge%
exit /b
:GenPWsAlNum
  setlocal enabledelayedexpansion
  title Passwort Generator (%2-stellig)
  set "Alphabet=a b c d e f g h i j k l m n o p q r s t u v w x y z"  
  for /l %%i in (1,1,%1) do (
    (for /l %%j in (1,1,%2) do (
       set /a "cipher=!random! %% 36"  
       if !cipher! leq 9 (
         <NUL set /p "=!cipher!"  
       ) else (
         set /a "cipher-=9"  
         call :PrintArrayItem !cipher!
       )
    )) & echo.
  )
  endlocal
pause
set counter=0
goto PWGenerator
exit /b
:PrintArrayItem
  for /f "tokens=%1" %%c in ("%Alphabet%") do <NUL set /p "=%%c"  
  exit /b
und nochmal danke an alle dank euch konnte ich meinen Quellcode beträchtlch einschmelzen
mfg
Julian57