Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
April
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#18867 - 03/03/03 08:14 AM the crypt() funtion in PHP
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå× Offline



Joined: Dec 2002
Posts: 3,255
Maryland
Okay,

So you want to encrypt your password for safe storage. now how do we do this? Use crypt()

The way this works is like so


User fills out HTML form
Code:
 
<form action="process.php" METHOD="POST">
<input type="password" name="reg_password">

 
the variable $reg_password is then sent to process.php to, yup process the info..


In the process.php script you will have something like this.

Code:
 
$reg_password = crypt("$reg_password", "$1$salthere^");
 
This will encrypt your variable $reg_password into an MD5 hashing. Just use the same salt to encrypt thier password when they login everytime and you are set.


My New site OpenEyes
Top
Sponsored Links
#18868 - 03/03/03 08:24 AM Re: the crypt() funtion in PHP
Joined: Feb 2002
Posts: 7,194
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,194
Portland, OR; USA
You figured this out cas of UBB.Threads didn't you ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Top
#18869 - 03/03/03 08:29 AM Re: the crypt() funtion in PHP
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå× Offline



Joined: Dec 2002
Posts: 3,255
Maryland
Nah actualy a side project for someone in the family.


My New site OpenEyes
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics45,509
Posts80,677
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 38,673
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 2 guests and 1 spider.
Latest News