Lance's TextBox

About Me       - Also see my RSS simple services site.

  Home  |   Contact  |   Syndication    |   Login
  510 Posts | 7 Stories | 379 Comments | 258 Trackbacks

News

Lance Robinson is a product manager and software developer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe Add to Technorati Favorites

 

 

 

 


 

 

Search My Blog:

 

 

Twitter












Tag Cloud


Archives

Post Categories

Blogs

Miscellanous

Noteworthy Stuff

Popular Posts

An easy way to convert data to/from base64 (or uuencode/uudecode, quoted-printable, url encode/url decode, JIS, Yenc, hex, or even creating md5 or sha1 hashes) is to use the NetCmdlets convert-data cmdlet. To encode:

PS C:\> convert-data -data "Hello, World!" -to base64

Data                                                             Size Format
----                                                             ---- ------
SGVsbG8sIFdvcmxkIQ==                                               20 base64

To decode:

PS C:\> convert-data -data $encoded.Data data -from base64

Data                                                             Size Format
----                                                             ---- ------
Hello, World!                                                      13 Plain

Technorati Tags: , ,
posted on Friday, August 29, 2008 1:24 PM