# encoding: ascii # api: powershell # title: Types.ps1xml # description: A few random extensions I load in my profile to make life easier # version: 0.1 # type: script # author: Joel Bennett # license: CC0 # x-poshcode-id: 6307 # x-archived: 2016-06-24T18:39:03 # x-published: 2016-04-18T16:03:00 # # System.Byte[] Hex $this | % {write-host $([String]::Format("{0:X}",$_)) -nonew} Microsoft.PowerShell.Commands.MemberDefinition HelpLink "http://msdn2.microsoft.com/library/$($this.typename)$($this.name).aspx" System.String AsBase64 [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($this)) FromBase64 [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($this)) System.Security.SecureString ToPlainText