Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.988 | case |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 414 | libraries/joomla/user/helper.php |
2 | 7 | 422 | 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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#512a0ec0]] | 'smd5' |
1 | 2 | [[#512a0ec0]] | 'ssha' |
2 | 1 | [[#512a0e60]] | '|^{SMD5}|' |
2 | 2 | [[#512a0e60]] | '|^{SSHA}|' |
3 | 1 | [[#512a0de0]] | 16 |
3 | 2 | [[#512a0de0]] | 20 |
4 | 1 | [[#512a0ce0]] | MHASH_MD5 |
4 | 2 | [[#512a0ce0]] | MHASH_SHA1 |