0 Replies - 1251 Views - Last Post: 22 April 2012 - 05:57 PM

#1 html5468  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 15-March 12

Password Generator

Posted 22 April 2012 - 05:57 PM

Description: Copy and paste to a text editor, then save as a .bat and run.Generates a random numerical password using information that you enter.
@echo off
title Password Generator

:enter
cls
echo.
set /p fn=First Name: 
set /p by=Birth Year: 
set /p ag=Age: 
set /p td=Today's Date (DD): 
set str_tmp=%fn%
set str_len=0
goto slf

:slf
if not "%str_tmp%"=="" (
set str_tmp=%str_tmp:~1%
set /a str_len+=1
goto slf
)
goto pas

:pas
set /a po=%str_len% * %by%
set /a pt=%by% * %ag%
set /a pth=%pt% + %po%
set /a pf=%pth% * %td%
set /a pfi=%po% + %pt% + %pth% + %pf%
set /a range= ( 100 - 1 ) + 1
set /a rndm= ( %random% %% %range% ) + 1
set /a pass=%pfi% * %rndm%
echo.
echo Your new password is: %pass%
echo.
pause>null
goto enter





Is This A Good Question/Topic? 0
  • +

Page 1 of 1