WebOptimizer.JSObfuscator
1.1.5
dotnet add package WebOptimizer.JSObfuscator --version 1.1.5
NuGet\Install-Package WebOptimizer.JSObfuscator -Version 1.1.5
<PackageReference Include="WebOptimizer.JSObfuscator" Version="1.1.5" />
paket add WebOptimizer.JSObfuscator --version 1.1.5
#r "nuget: WebOptimizer.JSObfuscator, 1.1.5"
// Install WebOptimizer.JSObfuscator as a Cake Addin #addin nuget:?package=WebOptimizer.JSObfuscator&version=1.1.5 // Install WebOptimizer.JSObfuscator as a Cake Tool #tool nuget:?package=WebOptimizer.JSObfuscator&version=1.1.5
WebOptimizer JavaScript Obfuscator Plugin
The WebOptimizer JavaScript Obfuscator plugin integrates directly into the WebOptimizer asset pipeline, offering an advanced solution for obfuscating JavaScript files within ASP.NET Core applications. This plugin employs sophisticated obfuscation techniques to bolster the security of your JavaScript code, making it harder to reverse-engineer or tamper with.
Getting Started
Basic Configuration
Configure a JavaScript bundle and apply obfuscation in your
Startup.cs
orProgram.cs
:using Artnalgo.NET.JSObfuscator.Core; using WebOptimizer.JSObfuscator; builder.Services.AddWebOptimizer(pipeline => { pipeline.AddJavaScriptBundle("/js/bundle.js", "js/site.js", "js/other.js") .ObfuscateJavascript(ObfuscationLevel.LowObfuscationHighPerformanceOptions); });
Custom Obfuscation Settings
Tailor the obfuscation process with specific options:
builder.Services.AddWebOptimizer(pipeline => { var options = new JavaScriptObfuscatorOptionsBuilder() .SetDebugProtection(true, interval: 4000) .SetDisableConsoleOutput(true) .SetUnicodeEscapeSequence(true) .Build(); pipeline.AddJavaScriptBundle("/js/bundle.js", "js/site.js", "js/other.js") .ObfuscateJavascript(options); });
Documentation
For more information please refer to the GitHub Repository and Documentation
Feedback
Your feedback and suggestions are highly valued. If you have any comments or encounter any issues, please don't hesitate to reach out through:
- GitHub Issues
- Twitter: @artnalgo
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 was computed. 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. |
-
net6.0
- Artnalgo.NET.CacheCraft (>= 1.0.0)
- Artnalgo.NET.JSObfuscator.Core (>= 1.1.3)
- LigerShark.WebOptimizer.Core (>= 3.0.405)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
This version introduces robust obfuscation capabilities for JavaScript files within the WebOptimizer pipeline, featuring a suite of techniques for improved code security in ASP.NET Core projects.