8000 GitHub - CLY88/Base64Encoder: A simple demonstration program to show how to encode and decode a file using base64, via the built-in .Net Convert class.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple demonstration program to show how to encode and decode a file using base64, via the built-in .Net Convert class.

Notifications You must be signed in to change notification settings

CLY88/Base64Encoder 8000

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Base64encoder

This is a simple demonstration program to show how to sue the .NET API to convert a file to and from base64 encoding.

I realise it's pretty simple, but someone asked for some help and I thought it might be useful to others.

The program takes one and only one command-line parameter, the name of a file to convert. This file can be binary or text, it shouldn't matter.

The program then:

  • loads the file,
  • converts it to base64 text,
  • writes the base64 contents to a new file (the same name as the initial file, but with a '.base64' extension),
  • reads the contents of this new file,
  • converts it back from base64 to the original bytes,
  • writes the newly-unconverted bytes to another new file (the same name as the initial file, but with a '.decoded' extension),
  • compares the original and decoded bytes to make sure they are identical.

It tries to output some useful information about what it's doing along the way.

About

A simple demonstration program to show how to encode and decode a file using base64, via the built-in .Net Convert class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%
0