Dax.Vpax.Obfuscator
1.1.3
dotnet add package Dax.Vpax.Obfuscator --version 1.1.3
NuGet\Install-Package Dax.Vpax.Obfuscator -Version 1.1.3
<PackageReference Include="Dax.Vpax.Obfuscator" Version="1.1.3" />
paket add Dax.Vpax.Obfuscator --version 1.1.3
#r "nuget: Dax.Vpax.Obfuscator, 1.1.3"
// Install Dax.Vpax.Obfuscator as a Cake Addin #addin nuget:?package=Dax.Vpax.Obfuscator&version=1.1.3 // Install Dax.Vpax.Obfuscator as a Cake Tool #tool nuget:?package=Dax.Vpax.Obfuscator&version=1.1.3
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 | 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 Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.9.0)
- Dax.Vpax.Obfuscator.Common (>= 1.0.3)
-
net6.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.9.0)
- Dax.Vpax.Obfuscator.Common (>= 1.0.3)
-
net8.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Dax.Vpax (>= 1.9.0)
- Dax.Vpax.Obfuscator.Common (>= 1.0.3)
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 | 560 | 11/12/2024 |
1.1.1 | 417 | 10/20/2024 |
1.0.11 | 359 | 9/17/2024 |
1.0.5 | 1,630 | 4/1/2024 |
1.0.2 | 209 | 3/18/2024 |
1.0.1 | 137 | 3/15/2024 |
0.6.5-beta | 79 | 3/15/2024 |
0.6.4-beta | 101 | 3/14/2024 |
0.6.2-beta | 143 | 3/14/2024 |
0.5.1-beta | 101 | 3/10/2024 |
0.4.2-beta | 89 | 3/5/2024 |
0.4.1-beta | 105 | 3/4/2024 |
0.3.4-beta | 110 | 3/2/2024 |
0.3.3-beta | 162 | 2/23/2024 |
0.2.2-beta | 92 | 2/22/2024 |
0.2.1-beta | 93 | 2/16/2024 |
0.1.3-beta | 119 | 2/13/2024 |
0.1.1-beta | 98 | 2/13/2024 |