December 04, 2020, 11:36:51 AM

Author Topic: [bmx] Random Password Generator by Arowx [ 1+ years ago ]  (Read 634 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bmx] Random Password Generator by Arowx [ 1+ years ago ]
« on: June 29, 2017, 12:28:43 AM »
Title : Random Password Generator
Author : Arowx
Posted : 1+ years ago

Description : Need a random password but just can't think randomly then use the Password Grid Generator TM...

Yep a grid of 10x10 randomly generated character's all you have to do is pick the a row/line or path or any selection and you have a very random password.

Click the left mouse button to randomize the grid...


Code :
Code: BlitzMax
  1. 'Arowx : Password Generator -
  2. ' ascii characters from 33(!) to 126(~) randomly shuffled in a 10x10 grid
  3.  
  4. Framework brl.max2d
  5. Import brl.random
  6. Import BRL.D3D9Max2D
  7.  
  8. Const number = 3473992
  9. seed = MilliSecs()*number
  10.  
  11. SeedRnd(seed)
  12.  
  13. AppTitle = "Codegrid Generator"
  14.  
  15. Graphics 230,230
  16.  
  17. Repeat
  18.  
  19. Cls
  20.         SeedRnd(seed)
  21.        
  22.         For x = 0 To 9
  23.                 For y = 0 To 9
  24.                         DrawText Chr(Rand(33,126)), x*20+20, y*20+20
  25.                 Next
  26.         Next
  27.  
  28.         If MouseDown(1)
  29.                 seed = MilliSecs()*number
  30.         EndIf
  31.  
  32. Flip
  33.  
  34. Until AppTerminate()


Comments :


Matty(Posted 1+ years ago)

 I don't see the point in multiplying millisecs() by a constant number. It's not going to be any more or less random than it already is.


Nate the Great(Posted 1+ years ago)

 not sure about this but...I guess it gives a series of random numbers that are not as easily predicted as using normal rand. Then again, there are trillions of values millisecs() can be at so yeah I dont think it is very crackable for codes anyway lol...


Matty(Posted 1+ years ago)

 Nate - I think you'll find it does nothing other than pass a different seed. It is no more or less random than any other seed.


Nate the Great(Posted 1+ years ago)

 <div class="quote"> Nate - I think you'll find it does nothing other than pass a different seed. It is no more or less random than any other seed.  </div>thats what I was thinking... perhaps I was thinking a little too out loud... I said I dont think using seed rnd millisecs would be able to be reverse ingeneered for cracking codes anyway... which effectively means its not any more random than just using rand()


 

SimplePortal 2.3.6 © 2008-2014, SimplePortal