Cipher/MysqlAes.php
protected function mysqlAesKey($key)
    {
        $newKey = str_repeat(chr(0), 16);

        for ($i = 0, $len = strlen($key); $i < $len; $i++) {
            $newKey[$i % 16] = $newKey[$i % 16] ^ $key[$i];
        }

        return $newKey;
    }
protected function mysqlAesKey($key)
    {
        $newKey = str_repeat(chr(0), 16);

        for ($i = 0, $len = strlen($key); $i < $len; $i++) {
            $newKey[$i % 16] = $newKey[$i % 16] ^ $key[$i];
        }

        return $newKey;
    }
protected function mysqlAesKey ( $ key ) { $ newKey = str_repeat ( chr ( 0 ) , 16 ) ; for ( $ i = 0 , $ len = strlen ( $ key ) ; $ i < $ len ; $ i ++ ) { $ newKey [ $ i % 16 ] = $ newKey [ $ i % 16 ] ^ $ key [ $ i ] ; } return $ newKey ; }
Converts the key into the MySQL equivalent version

@param $key
@return string
Converts the key into the MySQL equivalent version