예제 #1
0
    public static string Encrypt(byte[] data)
    {
        byte[] V_0, V_1;

        byte[] V_2 = InternalEncrypt(data, out V_0, out V_1);
        byte[] V_3 = System.BitConverter.GetBytes(V_0.Length);
        byte[] V_4 = System.BitConverter.GetBytes(V_1.Length);

        int V_5 = V_3.Length + V_4.Length + V_0.Length + V_1.Length + V_2.Length;

        byte[] V_6 = new byte[V_5];

        int V_7 = 0;

        V_3.CopyTo(V_6, V_7);

        V_4.CopyTo(V_6, V_7 += V_3.Length);

        V_0.CopyTo(V_6, V_7 += V_4.Length);

        V_1.CopyTo(V_6, V_7 += V_0.Length);

        V_2.CopyTo(V_6, V_7 += V_1.Length);

        Array.Reverse(V_6);

        V_6 = System.Text.Encoding.UTF8.GetBytes(Convert.ToBase64String(V_6));

        Array.Reverse(V_6);

        return(Convert.ToBase64String(V_6));
    }