Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Base64String - Convert text from/to Base 64 String

PowerShell 3 PowerShell 4, 5 & Core on Windows build Linux & MacOS build latest version downloads

https://www.powershellgallery.com/packages/Base64String/

ConsoleDemo

⚡ Aliases

Cmdlet Alias
ConvertTo-Base64String encode64
ConvertFrom-Base64String decode64

📘 Commands

ConvertFrom-Base64String [-EncodedValue] <string> [-UrlSafe] <bool> (default- $false) - Set to produce url safe string ConvertTo-Base64String [-Value] <string> 

📃 Usage

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

🔨 Instalation

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

[v1.2.0] Oct 8, 2019

  • fix decidong ''1'' ending text

[v1.1.0] Sept 17, 2019

  • Added support url safe Base64 strings
ConvertTo-Base64String -Value $text -UrlSafe $true

[v1.0.0] Sept 12, 2019

  • Created functions
ConvertFrom-Base64String [-EncodedValue] <string> ConvertTo-Base64String [-Value] <string> 
  • Created unit tests

📬 Suggestions and feedback

If you have any idea or suggestion - please add a github issue.