MappingEncrypt
1.0.0
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
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.
1.0.0 - BREAKING: new API key rotation; scripts encoded with older versions will no longer work. Re-encode your scripts with this version.
USAGE
# Install / Upgrade / Uninstall / Reinstall
Install-Module MappingEncrypt
Update-Module MappingEncrypt
Uninstall-Module MappingEncrypt
Invoke-MappingPackage -Action reinstall
# 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
- MappingEncrypt.nuspec
- MappingEncrypt.psm1
- MappingEncrypt.psd1
- LICENSE
- README.md