UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
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
Doom 3
by Cyrez
09/11/14 08:58 PM
The History Thread...
by Cyrez
09/11/14 08:56 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Topic Options
Rate This Topic
#18867 - 03/03/03 12:14 AM the crypt() funtion in PHP
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: 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 12:24 AM Re: the crypt() funtion in PHP
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7192
Loc: 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, Elite Web Gamers & VNC Web Design Owner

Top
#18869 - 03/03/03 12:29 AM Re: the crypt() funtion in PHP
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Nah actualy a side project for someone in the family.
_________________________
My New site OpenEyes

Top

Moderator:  §intå×, Gremelin 
Featured Member
Registered: 08/22/14
Posts: 1
Forum Stats
2148 Members
46 Forums
34346 Topics
69515 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27508
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Gecko666, defghi795767, Devo60, ali, lavos
2147 Registered Users
Who's Online
0 registered (), 301 Guests and 273 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!