Convert.ToBase64String(byte []); Convert.FromBase64String(string);
With not much work, you can create a quick utility like the base64 utility in Linux, but for Windows. You can also use the .NET clipboard APIs to make the utility capable of conveniently translating data directly within the clipboard.
Featured here is a quickie utility for working with base64 encoding in various formats (command-line arguments, standard input/output, and clipboard).
The utility has issues encoding and decoding itself because it uses ReadLine() and doesn't read the entire input stream. Perhaps using OpenStandardInput().Read(...) would alleviate this. In any case, the example is provided as-is.
Featured here is a quickie utility for working with base64 encoding in various formats (command-line arguments, standard input/output, and clipboard).
The utility has issues encoding and decoding itself because it uses ReadLine() and doesn't read the entire input stream. Perhaps using OpenStandardInput().Read(...) would alleviate this. In any case, the example is provided as-is.
Source code here: https://github.com/strictlymike/EncodingUtils
No comments:
Post a Comment