how to make a strong password generator in notepad - knowledge World

Hot Post

6/recent/ticker-posts

Header Ads Widget

how to make a strong password generator in notepad - knowledge World

Notebook is viewed as a basic content tool that accompanies each rendition of windows. It is the default word processor present in windows. A normal windows client just uses it for altering writings, however, it is something other than a word processor. You can utilize it to make diverse order brief based on little programming. So on the off chance that you are searching for some pleasant coding with a notebook, start it by making a straightforward arbitrary secret phrase generator program. The accompanying bit by bit guide will show you to utilize a notebook to make a secret word generator. 


Go to "Start Menu" and afterwards go to "All Programs". 


Snap on "Extras" and afterwards click on "Notebook" to open it. 


In the scratchpad window type the accompanying lines of code: 


@Echo Off

color 0a

set /P lengthnumberuser="What length do you want your password to be?   "

pause

cls

Setlocal EnableDelayedExpansion

Set _RNDLength=%lengthnumberuser%

Set _Alphanumeric=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

Set _Str=%_Alphanumeric%987654321

:_LenLoop

IF NOT "%_Str:~18%"=="" SET _Str=%_Str:~9%& SET /A _Len+=9& GOTO :_LenLoop

SET _tmp=%_Str:~9,1%

SET /A _Len=_Len+_tmp

Set _count=0

SET _RndAlphaNum=

:_loop

Set /a _count+=1

SET _RND=%Random%

Set /A _RND=_RND%%%_Len%

SET _RndAlphaNum=!_RndAlphaNum!!_Alphanumeric:~%_RND%,1!

If !_count! lss %_RNDLength% goto _loop

Echo Password is: is !_RndAlphaNum!


pause


Snap-on "Record" and afterwards save the document utilizing the ".bat" augmentation as opposed to utilizing the basic ".txt" record expansion. 

Presently open the document from where you saved it. At the point when you will open it, it will produce 4 arbitrary passwords. You can increment or decline the number of passwords by altering the record.

--Thank You


 

Post a Comment

0 Comments