MappingEncrypt

0.2.4

A custom character encoding module for encrypting PowerShell scripts. PowerShell port of the mapping-encrypt package; uses the same private Cloudflare mapping worker.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MappingEncrypt -RequiredVersion 0.2.4

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MappingEncrypt -Version 0.2.4

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2024 MD Faisal Qureshi. All rights reserved.

Package Details

Author(s)

  • MD Faisal Qureshi

Tags

encoding encryption obfuscation mapping cloudflare protect

Functions

ConvertTo-MappingEncoded ConvertFrom-MappingEncoded Protect-MappingScript Unprotect-MappingScript Invoke-MappingPackage

Dependencies

This module has no dependencies.

Release Notes

Encode/decode PowerShell scripts via the shared private Cloudflare mapping worker.
0.2.3 - fixes encoding of scripts containing double-quotes (the generated stub now stores the encoded string in a literal single-quoted string, so tokens containing '$' are preserved).

USAGE

 # Install / Upgrade / Uninstall / Reinstall
 Install-Module   MappingEncrypt              # install
 Update-Module    MappingEncrypt              # upgrade to latest
 Uninstall-Module MappingEncrypt              # uninstall
 Invoke-MappingPackage -Action reinstall      # reinstall (uninstall + install)

 # Encode a script file into a self-decoding stub:
 mapping-encode .\my_script.ps1 -o .\encrypted.ps1

 # Run the encoded script (it decodes itself at runtime):
 pwsh .\encrypted.ps1

 # Decode an encrypted script back to source:
 mapping-decode .\encrypted.ps1

 # String-level helpers:
 $enc = ConvertTo-MappingEncoded  -Text 'Write-Host "hi"'
 $dec = ConvertFrom-MappingEncoded -EncodedString $enc

FileList

Version History

Version Downloads Last updated
1.0.0 4 7/16/2026
0.2.5 7 7/14/2026
0.2.4 (current version) 4 7/14/2026
0.2.3 5 7/14/2026
0.2.2 4 7/14/2026
0.2.1 3 7/14/2026
Show more