tisdag 30 oktober 2012

Base64 Encoding/Decoding, Winform and C#

Base64, " is a group of similar encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The Base64 term originates from a specific" Read more
http://en.wikipedia.org/wiki/Base64

I read the full "article" on Wikipedia and i think it was interesting, Below are a few diffrentent context that use Base64.


  • Base64 can be used in a variety of contexts:
  • Base64 can be used to transmit and store text that might otherwise cause delimiter collision
  • Base64 is used to store a password hash computed with crypt in the /etc/passwd
  • Spammers use Base64 to evade basic anti-spamming tools, which often do not decode Base64 and therefore cannot detect keywords in encoded messages.
  • Base64 is used for PHP obfuscation.
  • Base64 is used to encode character strings in LDIF files
  • Base64 is often used to embed binary data in an XML file, using a syntax similar to <data encoding="base64">…</data> e.g. favicons in Firefox's bookmarks.html.
  • Base64 is used to encode binary files such as images within scripts, to avoid depending on external files.
  • The data URI scheme can use Base64 to represent file contents. For instance, background images and fonts can be specified in a CSS stylesheet file as data: URIs, instead of being supplied in separate files.
Credit's to Wikipedia for that information, Now back on topic i made a simple application using windows forms. I  also played a little with event now on Form Load it will not update the lable "Lenght" but once From Loaded it will :).

 You can either download full project from Sendspace our snippet from github our pastebin.

Pastebin: http://pastebin.com/70iS2J9M
SendSpace: http://www.sendspace.com/file/pdqsvc

Inga kommentarer:

Skicka en kommentar