Skip to content
WJunction - Webmaster Forum

Random Password Generator by Samar

Status
Not open for further replies.
Hello,
i m learning VB so i crate Random Password Generator and i want to share with You Guys

Screenshot
nG42j.png


Scene Result
[SLIDE]http://i.imgur.com/Qwbqo.png[/SLIDE]
Code:
[URL]https://www.virustotal.com/file/9be95208881126c3cabdd4e46664b6c52af61d26f1d31a99fa2776a79ddad0af/analysis/1357726204/[/URL]
if u need any changes let me know :)

Download link
Code:
http://www.sendspace.com/file/nqu4il
 
Last edited:

4 comments

Here's another trivial way to do it in Python.. I've posted this before iirc.

PHP:
from random import randint

store = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrst"
p = ''.join([s[randint(0, 61)] for i in range(0, 8)])
 
@Gaurav

PHP :|

PHP:
<?php
 
// PHP Random Function
// Coded by Qarizma
 
function randGen($l = '10', $special = '', $prefix = '', $suffix = ''){
if ($special == '@') {
  $chars =  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789``-=~!@#$%^&*()_+,./<>?;:[]{}\|';
  } else {
  $chars =  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  }
  $string = '';
  $maximum = strlen($chars) - 1;
  for ($i=0; $i < $l; $i++)
    $string .= $chars[rand(0, $maximum)];
  return $prefix.$string.$suffix;
}
 
// Usage (with special chars):
echo randGen('66', '@');
 
// Usage (without special chars):
echo randGen('66', '@');
 
// Usage (without special chars with pre and suffix):
echo randGen('66', '@', 'PREFIX', 'SUFFIX');
 
?>

Goodjob Samar, keep coding :)
 
Status
Not open for further replies.

About the author

Mr.WT
Banned · Joined
2,640
Messages
284
Reactions
83
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom