Base64String 1.2.0
Install from the command line:
Learn more about NuGet packages
$ dotnet add package Base64String --version 1.2.0
About this version
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 $true
Convert text from Base 64 String:
/> ConvertFrom-Base64String "dABlAHgAdAA="
/> echo "dABlAHgAdAA" | decode64
Powershell Gallery:
PowerShellGet
Installation :
Install-Module -Name Base64String
Direct 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.
Details
- Base64String
- stadub
- about 5 years ago
Assets
- base64string.1.2.0.nupkg
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0