Dax.Vpax.Obfuscator 1.0.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dax.Vpax.Obfuscator --version 1.0.11                
NuGet\Install-Package Dax.Vpax.Obfuscator -Version 1.0.11                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dax.Vpax.Obfuscator" Version="1.0.11" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dax.Vpax.Obfuscator --version 1.0.11                
#r "nuget: Dax.Vpax.Obfuscator, 1.0.11"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dax.Vpax.Obfuscator as a Cake Addin
#addin nuget:?package=Dax.Vpax.Obfuscator&version=1.0.11

// Install Dax.Vpax.Obfuscator as a Cake Tool
#tool nuget:?package=Dax.Vpax.Obfuscator&version=1.0.11                

VertiPaq-Analyzer Obfuscator

VertiPaq Analyzer Obfuscator is a .NET library that enables the obfuscation of VertiPaq Analyzer files.

You can read more here.

Installation

The library is available on NuGet. Just search for Dax.Vpax.Obfuscator in the Package Manager GUI or run the following command in the .NET CLI:

dotnet add package Dax.Vpax.Obfuscator

Usage

The library can be used in any .NET application built with net462, netcoreapp3.1, net5.0 or later.

Obfuscation

using var vpax = new MemoryStream(File.ReadAllBytes(@"C:\path\to\unobfuscated.vpax"));
var obfuscator = new VpaxObfuscator();
var dictionary = obfuscator.Obfuscate(vpax);

dictionary.WriteTo(@"C:\path\to\dictionary.dict");
File.WriteAllBytes(@"C:\path\to\obfuscated.ovpax", vpax.ToArray());

Deobfuscation

using var vpax = new MemoryStream(File.ReadAllBytes(@"C:\path\to\obfuscated.ovpax"));
var dictionary = ObfuscationDictionary.ReadFrom(@"C:\path\to\dictionary.dict");
var obfuscator = new VpaxObfuscator();
obfuscator.Deobfuscate(vpax, dictionary);

File.WriteAllBytes(@"C:\path\to\deobfuscated.vpax", vpax.ToArray());

Incremental Obfuscation

Incremental obfuscation keeps the same obfuscated names across different VPAX versions of the same model.

using var vpax = new MemoryStream(File.ReadAllBytes(@"C:\path\to\unobfuscated-v2.vpax"));
var dictionaryV1 = ObfuscationDictionary.ReadFrom(@"C:\path\to\dictionary-v1.dict");
var obfuscator = new VpaxObfuscator();
var dictionary = obfuscator.Obfuscate(vpax, dictionaryV1);

dictionary.WriteTo(@"C:\path\to\dictionary-v2.dict");
File.WriteAllBytes(@"C:\path\to\obfuscated-v2.ovpax", vpax.ToArray());

CLI

A command-line interface is also available for the obfuscator. The CLI is available as a standalone executable, which can be downloaded from the releases page.

C:\> vpax-obfuscator.exe [command] [options]

For usage and help content for any command, pass in the -h parameter, for example:

C:\> vpax-obfuscator.exe obfuscate -h

Description:
  Obfuscate the DaxModel.json file and delete all other contents from a VPAX file.

Usage:
  vpax-obfuscator obfuscate [options]

Options:
  --vpax <vpax> (REQUIRED)                 Path to the unobfuscated VPAX file.
  --dictionary <dictionary>                Path to the dictionary file to be used for incremental obfuscation. If not provided, a new dictionary will be created.
  --output-vpax <output-vpax>              Path to write the obfuscated VPAX file. If not provided, the file will be written to the same folder as the '--vpax' file, using the default file extension for obfuscated VPAX files, which is '.ovpax'.
  --output-dictionary <output-dictionary>  Path to write the obfuscation dictionary file. If not provided, the file will be written to the same folder as the '--vpax' file, using the default file extension for obfuscation dictionary files, which is '.dict'.
  --track-unobfuscated                     Specifies whether to include unobfuscated values in the output dictionary.
  --allow-overwrite                        Allow output files to be overwritten. If not provided, the command will fail if an output file already exists.
  -?, -h, --help                           Show help and usage information
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Dax.Vpax.Obfuscator:

Repository Stars
DaxStudio/DaxStudio
DAX Studio is a tool to write, execute, and analyze DAX queries in Power BI Desktop, Power Pivot for Excel, and Analysis Services Tabular.
Version Downloads Last updated
1.1.3 150 11/12/2024
1.1.1 349 10/20/2024
1.0.11 347 9/17/2024
1.0.5 1,601 4/1/2024
1.0.2 204 3/18/2024
1.0.1 132 3/15/2024
0.6.5-beta 76 3/15/2024
0.6.4-beta 96 3/14/2024
0.6.2-beta 139 3/14/2024
0.5.1-beta 98 3/10/2024
0.4.2-beta 86 3/5/2024
0.4.1-beta 100 3/4/2024
0.3.4-beta 107 3/2/2024
0.3.3-beta 159 2/23/2024
0.2.2-beta 89 2/22/2024
0.2.1-beta 90 2/16/2024
0.1.3-beta 112 2/13/2024
0.1.1-beta 91 2/13/2024