Advertisement:

Author Topic: Encryption for SMF  (Read 3384 times)

Offline termee2

  • Newbie
  • *
  • Posts: 2
Encryption for SMF
« on: January 07, 2005, 03:56:37 PM »
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]

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,868
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Encryption for SMF
« Reply #1 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

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
Cincy Space - now open!

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Encryption for SMF
« Reply #2 on: January 07, 2005, 07:07:02 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]