| Cmdlet | Alias |
|---|---|
| ConvertTo-Base64String | encode64 |
| ConvertFrom-Base64String | decode64 |
ConvertFrom-Base64String [-EncodedValue] <string> [-UrlSafe] <bool> (default- $false) - Set to produce url safe string ConvertTo-Base64String [-Value] <string> Convert text to Base64 String:
/> ConvertTo-Base64String -Value "text" -UrlSafe $true/> echo "text" | encode64/> echo "text" | encode64 -UrlSafe $trueConvert text from Base 64 String:
/> ConvertFrom-Base64String "dABlAHgAdAA="/> echo "dABlAHgAdAA" | decode64Powershell Gallery:
PowerShellGet Installation :
Install-Module -Name Base64StringDirect download instalation:
iex ('$module="Shared-Functions/Base64String"'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/stadub/PowershellScripts/master/install.ps1'))Module import:
Import-Module Base64String- fix decidong ''1'' ending text
- Added support url safe Base64 strings
ConvertTo-Base64String -Value $text -UrlSafe $true- Created functions
ConvertFrom-Base64String [-EncodedValue] <string> ConvertTo-Base64String [-Value] <string> - Created unit tests
If you have any idea or suggestion - please add a github issue.
