Changing from sha1 to MD5 HELP

sandz

New Member
Nov 25, 2012
18
0
I was using rev with md5 but now i want to use jontehs new illumia cms but it won't let me login because of the hash difference..anyway to convert? :D
 

sandz

New Member
Nov 25, 2012
18
0
Open the login file, change sha1 to MD5
login file? :confused: It isn't as simple at that, here's my class core and index.

Class_core
Code:
<?php
 
    class LightCore {
        public function getServerStat($var) {
            global $db, $core;
            $this->query = "SELECT `" . $var . "` FROM `server_status`";
            if($this->result = $db->query($this->query)) {
                while($this->data = $this->result->fetch_row()) {
                    $this->return = $this->data[0];
                    return $this->return;
                }
            }
            else {
                $db->databaseError($db->error);
            }
        }
    }
?>
index
Code:
<?php
 
require_once "required.php";
 
if(!isset($_GET["novote"]) && $light->thehabbos_enabled) {
$vote_uri = str_replace('/', '!', WWW);
header ("Location: http://votingapi.com/vote.php?username=" . $light->thehabbos_username . "&api=" . $vote_uri . "!?novote");
}
 
$tpl->assign('loginError', null);
$tpl->assign('title', 'Welcome to the best Retro on the web');
 
if ($users->isLogged()) {
header ("Location: /me");
}
if (isset($_POST["credentials_username"]) && isset($_POST["credentials_password"])) {
$u = $db->real_escape_string($_POST["credentials_username"]);
$p = $users->userHash($_POST["credentials_password"], $u);
 
if ($users->validCredentials($u, $p)) {
$_SESSION["Username"] = $users->userVar($u, 'username');
$_SESSION["HashedPassword"] = $p;
header ("Location: " . WWW . "/me");
}
else {
$tpl->assign('LoginError', 'Invalid username or password.');
}
}
 
// Initialize HTML Output
$tpl->draw('index-top');
$tpl->draw('index');
$tpl->draw('footer');
?>
 

Damon

Member
Aug 13, 2012
364
114
Do you mean MD5 to SHA1 or .. SHA1 to md5?

cos rev is md5.. and im guessing jontys is sha1?

I end up doing it somehow with mine, converting from rev to uber [md5 - sha1], but i cant remember. If I do remember ill give you it here :p
 

Users who are viewing this thread

Top