Dax.Vpax.Obfuscator
1.0.5
See the version list below for details.
dotnet add package Dax.Vpax.Obfuscator --version 1.0.5
NuGet\Install-Package Dax.Vpax.Obfuscator -Version 1.0.5
<PackageReference Include="Dax.Vpax.Obfuscator" Version="1.0.5" />
paket add Dax.Vpax.Obfuscator --version 1.0.5
#r "nuget: Dax.Vpax.Obfuscator, 1.0.5"
// Install Dax.Vpax.Obfuscator as a Cake Addin #addin nuget:?package=Dax.Vpax.Obfuscator&version=1.0.5 // Install Dax.Vpax.Obfuscator as a Cake Tool #tool nuget:?package=Dax.Vpax.Obfuscator&version=1.0.5
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 | Versions 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. |
-
.NETCoreApp 3.1
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.5.0)
-
.NETFramework 4.6.2
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.5.0)
-
net6.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.5.0)
-
net8.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.5.0)
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 | 71 | 11/12/2024 |
1.1.1 | 284 | 10/20/2024 |
1.0.11 | 342 | 9/17/2024 |
1.0.5 | 1,587 | 4/1/2024 |
1.0.2 | 201 | 3/18/2024 |
1.0.1 | 129 | 3/15/2024 |
0.6.5-beta | 73 | 3/15/2024 |
0.6.4-beta | 93 | 3/14/2024 |
0.6.2-beta | 136 | 3/14/2024 |
0.5.1-beta | 95 | 3/10/2024 |
0.4.2-beta | 83 | 3/5/2024 |
0.4.1-beta | 97 | 3/4/2024 |
0.3.4-beta | 104 | 3/2/2024 |
0.3.3-beta | 156 | 2/23/2024 |
0.2.2-beta | 86 | 2/22/2024 |
0.2.1-beta | 87 | 2/16/2024 |
0.1.3-beta | 109 | 2/13/2024 |
0.1.1-beta | 88 | 2/13/2024 |