コード例 #1
0
    public static Dictionary <string, object> DecryptDecodeDeserialize(byte[] bytes, Encoding encoding)
    {
        try
        {
            string[] parts = Encoding.UTF8.GetString(Convert.FromBase64String(PKIV)).Split('/');
            return(AESEncryptor.DecryptDecodeDeserialize(KeyToBytes(parts[0]), KeyToBytes(parts[1]), bytes, encoding));
        }
        catch (Exception e)
        {
            Debug.LogError("GameDataUtils (DecryptBytes):: Error Dencrypting Bytes - " + e);
        }

        return(null);
    }