News

 Subscribe Add to Technorati Favorites

 

 

 

 


 

 

Search My Blog:

 

 

My Stats

  • Posts - 472
  • Comments - 277
  • Trackbacks - 265

Twitter












Tag Cloud


Recent Comments


Recent Posts


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 @ Friday, August 29, 2008 1:24 PM | Filed Under [ PowerShell ]

Comments

No comments posted yet.
Post a comment





 

Please add 8 and 7 and type the answer here: