HwNL Community - Il Forum Informatico
Password Generator - Versione stampabile

+- HwNL Community - Il Forum Informatico (https://forum.hwnl.it)
+-- Forum: Informatica (https://forum.hwnl.it/forum-27.html)
+--- Forum: Programmazione (https://forum.hwnl.it/forum-18.html)
+--- Discussione: Password Generator (/thread-519.html)



RE: Password Generator - Devil_Code - 09-07-2009

Codice:
@echo off
cls
title Password Generetor  (C)oded by Devil_Code
color 0a


echo [+]-----------------------------------[+]
echo  -          Password Generetor         -
echo  -        (C)oded by Devil_Code        -
echo [+]-----------------------------------[+]
echo  - Coz the world is nothing without me,-
echo  -                   the world is mine -
echo [+]-----------------------------------[+]
echo  -          Genera Password:           -
echo  -            1)Semplice               -
echo  -            2)Normale                -
echo  -            3)Complessa              -
echo [+]-----------------------------------[+]

set /p ask=Complessita Password da generare?

if %ask% == 1 goto semplice
if %ask% == 2 goto normale
if %ask% == 3 goto complessa

:semplice

SET MIN=6

SET MAX=6
SET /a Casuale=MIN+(MAX-MIN)+d

echo.
echo Password:
echo %Casuale%%random%

goto END

:normale

SET MIN=7

SET MAX=9

SET /a Casuale=AoRmN5u82*%random%+9794
echo.
echo Password:
echo %Casuale%%random%%random%

goto END

:complessa

SET a=$
SET b=!
SET C=(&%*

SET MIN=9

SET MAX=10

SET /a Casuale=MIN+(MAX-MIN+1)*%random%*3+%random%


echo.
echo Password:
echo %random%%a%%Casuale%%b%%c%

goto END


:END

echo.
echo Grazie per aver usato il mio semplice Password Generator


pause > NUL