난독화 - escaco95/Charcoal GitHub Wiki


set S[this] = S[this] * 1103515245 + 12345
return ModuloInteger(S[this] / 65536, 32768)

//====================================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//====================================================================================
static class Obfuscator
{
    //--------------------------------------------------------------------------------
    static class Keys
    {
        //****************************************************************************
        static readonly string Chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ~!@#$&*-=+";
        //****************************************************************************
        static int NextHash(int hash)
        {
            return (12345 * hash + 8421) % 65536;
        }
        //****************************************************************************
        internal static string FromHash(int hash)
        {
            char[] copiedOriginal;
            char[] pickedChars;
            // original chars string --copy--> copied original chars array
            // copied original chars array --pick random--> picked chars array
            // picked chars array --return-->
            return pickedChars;
        }
        //****************************************************************************
    }
    //--------------------------------------------------------------------------------
    public static string Pack(string largeNum, int hash)
    {
        string keys = Keys.FromHash(hash);
        return "";
    }
    public static string Release(string code, int hash)
    {
        string keys = Keys.FromHash(hash);
        return "";
    }
    //--------------------------------------------------------------------------------
}
//====================================================================================