News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Encryption for SMF

Started by termee2, January 07, 2005, 03:56:37 PM

Previous topic - Next topic

termee2

Hello All-

I have two questions.....


First off.....

What type of encryption does SMF use.  HMAC? MD5.....?





Finally......what function in php do you use to do log ins, and registers......   preety much like....

I have a register page..... and i want the password the users submits to be encrypted in whatever encryption form you use, so it can be stored in a database.  The password field is called 'pass'.  Second.... When loggin in, how do I make the pawwword the user sumbmints check against the one that is stored in the database.  If I am not specific enough, please tell me and I will clarify...THANKS


*I really want to integrate my site with your exelent forum*

-Andrew litt
hxxp:skinxp.com [nonactive]

Oldiesmann

1. SMF uses MD5 encryption.
The function you're looking for is md5_hmac, which can be found in Sources/Load.php

2. SMF compares the encrypted version of the password the user entered with the encrypted password in the database.

The easiest way to integrate SMF with your site is by using the functions available in SSI.php - 20+ functions that do everything from displaying a login box (or a logout thing if you're logged in) to displaying the most recent topics, a poll, etc.

More info on SSI:
http://www.simplemachines.org/community/ssi_examples.php
http://unknown.network32.net/tutorial.smf_using-ssi
Basic SSI FAQ
Advanced SSI FAQ
Expert SSI FAQ

Hope that helps.
Michael Eshom
Christian Metal Fans

[Unknown]

Quote from: Oldiesmann on January 07, 2005, 05:11:09 PM
1. SMF uses MD5 encryption.
The function you're looking for is md5_hmac, which can be found in Sources/Load.php

As the name implies, it actually uses hmac md5 hashing...

-[Unknown]

Advertisement: