Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> creat password with php?
univers
post Sep 30 2004, 04:10 PM
Post #1





Guests






how
Go to the top of the page
 
+Quote Post
sanweikui
post Oct 1 2004, 04:04 AM
Post #2


Member [Level 1]
****

Group: Members
Posts: 51
Joined: 24-September 04
Member No.: 1,256



what's your meaning? blink.gif
Go to the top of the page
 
+Quote Post
Magic-Node
post Oct 1 2004, 09:10 AM
Post #3


Newbie [Level 2]
**

Group: Members
Posts: 26
Joined: 14-September 04
Member No.: 1,116



If you mean how to get a random password, this is one way to do it:

CODE
function RandomPass( $passLength )
{
 $PassChars = 'ABVDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
 $Vouel = 'aeiou';
 $Pass = "";

 for ($index = 1; $index <= $passLength; $index++)
 {        
    if ($index % 3 == 0)
    {
      $randomNumber = rand(1,strlen($Vouel));
      $Pass .= substr($Vouel,$randomNumber-1,1);    
    }else
      {
        $randomNumber = rand(1,strlen($PassChars));
        $Pass .= substr($PassChars,$randomNumber-1,1);
      }
 }
 return $Pass;
}

$regpass = RandomPass(6);
Go to the top of the page
 
+Quote Post
CodeTeam
post Oct 2 2004, 06:49 PM
Post #4


Newbie [Level 2]
**

Group: Members
Posts: 33
Joined: 2-September 04
From: Norway
Member No.: 986



If you need a full membership system try this link :

http://www.phpfreaks.com/tutorials/65/0.php
Go to the top of the page
 
+Quote Post
mobileunlocking
post Oct 2 2004, 06:57 PM
Post #5


Super Member
*********

Group: Members
Posts: 233
Joined: 26-September 04
Member No.: 1,279



thx for that iv been looking for somthing like that.

Thx mate

Mick
Go to the top of the page
 
+Quote Post
CosmicT
post Oct 7 2004, 01:21 PM
Post #6


Newbie
*

Group: Members
Posts: 6
Joined: 7-October 04
Member No.: 1,456



try this:

<?php
function createPassword($length) {
return substr(md5(uniqid(rand(), true)), 0, $length);
}
?>
Go to the top of the page
 
+Quote Post
DSTools
post Oct 7 2004, 07:30 PM
Post #7


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 7-October 04
Member No.: 1,478



CosmicT, that code doesn't support passwords over 32 characters long. wink.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Recovering My Xistosupport Password(6)
  2. How To Remember Complex Passwords(14)
  3. Make A Moderately-secure Password System Using Javascript(10)
  4. Phpmyadmin Password Does Not Work(8)
  5. Pls Delete My Hosting Account(1)
  6. Password Encryption With Hash Functions(4)
  7. Password Reset [resolved](3)
  8. Password Protecting A Flash Drive(7)
  9. I Can't Find The Password Reset Page... [resolved](5)
  10. Simple Javascript And Password System(9)
  11. Password Protecting My Webpage(3)
  12. What Is Mysql's Default Root Password?(9)
  13. Unable To Change Cpanel Password(5)
  14. Making Winrar Archives(13)
  15. Changing A Gmail Password(10)
  1. I Think I Need A Cpan Password Reset(0)
  2. Forgot Password To Trend Micro Internet Security(6)
  3. Windows Admin Password Hack(3)
  4. How Do Uninstall Deep Freezer If I Lost Password?..(2)
  5. Password Reset [resolved](2)
  6. How Do I Find My Mysql Password? [resolved](5)
  7. Change Your Computer Password(6)
  8. Computer Admin Login With Lost Password?(15)
  9. Gahhh This Isn't Going Well Please Help!(12)
  10. Registration Form?!(6)
  11. Admin Password Xp(5)
  12. Softfuse Password Generator 1.4(1)
  13. Broadband Internet Connection Restriction(5)
  14. A Simple Password Page(3)
  15. How To Reset Cpanel Password?(5)


 



- Lo-Fi Version Time is now: 1st December 2008 - 08:43 PM