Randompassword From My Site

Started on the old forum in August 2008 · view the original in the archive · old links redirect here

1 reply · 467 views · started 18 years ago · 1 min read

2 participants
inet Senior · 264 posts #1

collection of random password generator code tip: use only alphanumerical characters lol

usage of this script when registration and reset a password thing!

i just don't remember who coded that just seen it form somewhere-else and i save it from my archive i do say thank you credit to the one who work for that code to who ever he is...

CODE<?php

function random_password_generator($lengthens) {

$chars = "1555234567890a54325bcd553efGHIJKL35MNOPQRSTUVW5454INET_comes_HERE_LOL_xyzAB DEF555ghijk35lmnopq55rstuvwXYZ1234567890";

$thepass = '';

for($i=0;$i<$lengthens;$i++)

{

$thepass .= $chars{mt_rand(0,strlen($chars)-1)};

}

return $thepass;

}

//time na maglabas ng pasword gagawa ang machine system

echo random_password_generator(10); //will output a password of 10 characters ?>

other scripts codes will follow

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

fastwap Newbie · 2 posts #2

collection of random password generator code tip: use only alphanumerical characters lol

usage of this script when registration and reset a password thing! i just don't remember who coded that just seen it form somewhere-else and i save it from my archive i do say thank you credit to the one who work for that code to who ever he is... CODE

<?php function random_password_generator($lengthens) { $chars = "1555234567890a54325bcd553efGHIJKL35MNOPQRSTUVW5454INET_comes_HERE_LOL_xyzAB DEF555ghijk35lmnopq55rstuvwXYZ1234567890"; $thepass = ''; for($i=0;$i<$lengthens;$i++) { $thepass .= $chars{mt_rand(0,strlen($chars)-1)}; } return $thepass; } //time na maglabas ng pasword gagawa ang machine system echo random_password_generator(10); //will output a password of 10 characters ?>

other scripts codes will follow

better use this one,,

CODE // make random password $salt = "abchefghjkmnpqrstuvwxyz0123456789"; srand((double)microtime()*1000000); $i = 0; while ($i <= 7) { $num = rand() % 33; $tmp = substr($salt, $num, 1); $pass = $pass . $tmp; $i++; }

	$adminpassword_adminemail = $pass;
	$adminpassword = md5($pass);

fastwap.info reliable wap hosting for wap and web build any site with us!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close