How to encode a text using Base64 and powershell

preview_player
Показать описание
En este video se muestra el manejo básico a tratar texto con base64 en conjunto con powershell.

Codificar :
$text = "Soy un mensaje en base 64 del canal codesblue"

$encoder = [System.Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($text))

Write-Output $encoder

Descodificar:
$text = "UwBvAHkAIAB1AG4AIABtAGUAbgBzAGEAagBlACAAZQBuACAAYgBhAHMAZQAgADYANAAgAGQAZQBsACAAYwBhAG4AYQBsACAAYwBvAGQAZQBzAGIAbAB1AGUA"

$descoder = [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($text))

Write-Output $descoder

powershell,encode base64,base64 encode,how to encode powershell base64,how do i encode and decode a base64 string,base64 decode,base64,encode and decode,how to encode commands powershell,encode,powershell base64 encode,how to do base64 encoding,powershell base64 encode file,decode base64,how to use java 8 encode decode an image to base64,base64 encoding,base64 encode text file,encode powershell,encode powershell commands,how to decode the base64 encrypted code,encode and decode strings
Рекомендации по теме