Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by ">User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a ">Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#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
Likes: 3

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
<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.

$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.

Sponsored Links
#18868 - 03/03/03 08:24 AM Re: the crypt() funtion in PHP  
Joined: Feb 2002
Posts: 7,202
Gremelin Online shocked
Community Owner
Gremelin  Online Shocked

Community Owner

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

Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#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
Likes: 3
Nah actualy a side project for someone in the family.

Member Spotlight
Los Angeles,CA
Posts: 70
Joined: May 2002
Show All Member Profiles 
Forum Statistics
Average Daily Posts0
Most Online1,567
Apr 25th, 2010
Latest Postings
by Cyrez on 12/16/17 09:19 AM
Okay WTF?
by HenryMiring on 09/27/17 08:45 AM
The History Thread...
by Gremelin on 08/11/17 07:11 PM
my old account still exists!
by Gremelin on 08/11/17 07:02 PM
My friend NEEDS your HELP!
by Lena01 on 07/21/17 07:06 AM
I'm having fun with this guy.
by gabithompson730 on 07/20/17 08:50 AM
I want to upgrade my phone
by gabithompson730 on 07/20/17 08:49 AM
Top Posters(All Time)
UGN Security 41,392
Gremelin 7,202
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 3
Black Beard Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
fleshwound Likes: 1
Ghost Likes: 2
Gremelin Likes: 12
Ice Likes: 1
ninjaneo Likes: 1
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20170206)