Author Topic: CLR: simple password generator  (Read 559 times)

stanl

  • Pundit
  • *****
  • Posts: 1768
CLR: simple password generator
« on: September 15, 2021, 03:00:36 am »
takes password length and number of non-characters as parameters:
Code: Winbatch

;simple password generator with CLR
length = 10
nonchars = 3
ObjectClrOption('useany', 'System.Web')
oSecure = ObjectClrNew("System.Web.Security.Membership")
password = oSecure.GeneratePassword(length,nonchars)
Message("Password Created",password)
Exit


 

JTaylor

  • Pundit
  • *****
  • Posts: 1907
    • Data & Stuff Inc.
Re: CLR: simple password generator
« Reply #1 on: September 15, 2021, 06:20:52 am »
Thanks.  Was just looking for something like this the other day.   

Jim

stanl

  • Pundit
  • *****
  • Posts: 1768
Re: CLR: simple password generator
« Reply #2 on: September 16, 2021, 11:12:05 am »
Thanks.  Was just looking for something like this the other day.   

Jim


You are welcome. See that this works well for sending out input passwords based on timer to receive a download.