How To return md5 salted hash? [closed]
- by user1790627
Here is the function and this function returns value for sessionGuid.
Example, User1 login and join chat then the value of User1 for sessionGuid is. 1
User2 value for sessionGuid is. 2
User3 . value .3
i want this function return md5 salted hash to avoid hacks.
function get_current_online_session_login() {
$oSrvSec = &App::getModuleService('Account', 'Security');
$login = $oSrvSec->getCurrentUserLogin();
$aReq = getRow(App::getT('online_session'), 'online_session_user = "' . $login . '"');
// return $aReq['online_session_login'];
return $aReq['online_session_id'];
}