CloneSet507


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.988case
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17414
libraries/joomla/user/helper.php
27422
libraries/joomla/user/helper.php
Clone Instance
1
Line Count
7
Source Line
414
Source File
libraries/joomla/user/helper.php

                        case 'ssha' :
                                if ($seed) {
                                        return substr(preg_replace('|^{SSHA}|', '', $seed), -20);
                                      }
                                else   {
                                        return mhash_keygen_s2k(MHASH_SHA1, $plaintext, substr(pack('h*', md5(mt_rand())), 0, 8), 4);
                                      }
                                break;


Clone Instance
2
Line Count
7
Source Line
422
Source File
libraries/joomla/user/helper.php

                        case 'smd5' :
                                if ($seed) {
                                        return substr(preg_replace('|^{SMD5}|', '', $seed), -16);
                                      }
                                else   {
                                        return mhash_keygen_s2k(MHASH_MD5, $plaintext, substr(pack('h*', md5(mt_rand())), 0, 8), 4);
                                      }
                                break;


Clone AbstractionParameter Count: 4Parameter Bindings

case [[#variable512a0ec0]]:
  if ($seed) {
    return substr(preg_replace( [[#variable512a0e60]],'',$seed),- [[#variable512a0de0]]);
  }
  else {
    return mhash_keygen_s2k( [[#variable512a0ce0]],$plaintext,substr(pack('h*',md5(mt_rand())),0,8),4);
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#512a0ec0]]
'smd5' 
12[[#512a0ec0]]
'ssha' 
21[[#512a0e60]]
'|^{SMD5}|' 
22[[#512a0e60]]
'|^{SSHA}|' 
31[[#512a0de0]]
16 
32[[#512a0de0]]
20 
41[[#512a0ce0]]
MHASH_MD5 
42[[#512a0ce0]]
MHASH_SHA1