Previous Thread
Next Thread
Print Thread
Rate Thread
#18867 03/03/03 12:14 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
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.

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
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
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
Nah actualy a side project for someone in the family.


Link Copied to Clipboard
Member Spotlight
None yet
Forum Statistics
Forums41
Topics33,840
Posts68,858
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Dartur 1
Cyrez 1
Girlie 1
unreal 1
Powered by UBB.threads™ PHP Forum Software 8.0.0