being a geek is fun

[ Home ] [ Tech Tips ] [ Getting Started ] [ Contact ] [ About ]  
PowerShell | Base64 encoding / decoding

PowerShell | Base64 encoding / decoding

How handy is to encode stuff?

Very for some people and sometimes it’s just for fun Feel free to read up more on Base64

Lets fire up the sHeLl!    

# Convert to Bas64

$text = 'Morning All'

$b = [System.Text.Encoding]::UTF8.GetBytes($text)

$output = [System.Convert]::ToBase64String($b)



# Convert from Base64

$ConvertFrom = $output

# $ConvertFrom = ''

$c = [System.Convert]::FromBase64String($ConvertFrom)



And it’s that simple, super fun happy time


Luke Keam

Luke Keam

Thank you for reading.

Any questions, comments or suggestions
Email [email protected]

Have a great day from

Luke Keam