Jump to content
Sign in to follow this  
Lynx

Kitsune AS3 Password Generator

Recommended Posts

This is a script used to generate passwords in Bcrypt for Kitsune - AS3 version. If you've been facing the incorrect password issue and you're extremely lazy to try Arthur's latest patch on the register. All you have to do in this script is edit the $username and $password variable on line 3 & 4 and then execute the script from your command line / terminal. It will generate the password for you, then all you have to do is copy and paste that into your password column in your database and update it.

 

<?php 
    
    $username = "Lynx";
    $password = "81r5C8%3i8cm";
    
    $hashedPassword = strtoupper(md5($password));
    $staticKey = 'e4a2dbcca10a7246817a83cd';
    
    $fancyPassword = getLoginHash($hashedPassword, $staticKey, $username);
    
    echo "\n\r\n\r" . $fancyPassword . "\n\r\n\r";

    function encryptPassword($password, $md5 = true) {
        if($md5 !== false) {
            $password = md5($password);
        }
        
        $hash = substr($password, 16, 16) . substr($password, 0, 16);
        return $hash;
    }
    function getLoginHash($password, $staticKey, $username) {        
        $hash = encryptPassword($password, false);
        $hash .= $staticKey;
        $hash .= "a1ebe00441f5aecb185d0ec178ca2305Y(02.>'H}t\":E1_root";
        $hash = encryptPassword($hash);
        $hash = password_hash($hash, PASSWORD_DEFAULT, [ 'cost' => 12 ]);
        
        return $hash;
    }

?>

 

  • Like 7

Share this post


Link to post
Share on other sites
2 hours ago, Ben said:

Nice, hopefully we wont get too many "password incorrect" support requests now 😛

You forget that these people never use the search engine so we'll have to link this topic ourselves.

Nice Lynx 👍

  • Like 2

Share this post


Link to post
Share on other sites
Sign in to follow this  

×