diff --git a/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 new file mode 100644 index 0000000..aaf7785 --- /dev/null +++ b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 @@ -0,0 +1,4 @@ +[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null +$InputBox = [Microsoft.VisualBasic.Interaction]::InputBox("Let's convert this to base64", "Sabrina's App", $null) +$InputBox = [convert]::ToBase64String([char[]]$InputBox) +[Microsoft.VisualBasic.Interaction]::MsgBox($InputBox,0,"Sabrina's App") \ No newline at end of file