Author Topic: Computing mavens: Base64 to binary conversion  (Read 1011 times)

Sindawe

  • friend
  • Senior Member
  • ***
  • Posts: 2,938
  • Vashneesht
Computing mavens: Base64 to binary conversion
« on: August 29, 2007, 01:58:04 PM »
K folks, I need to tap your brains.  Back in the day, it was common practice to post up images, execuatable and the like on Usenet as a string of what looked like ASCII characters, then others could copy and convert that string of characters back to their original format for use on their own PCs.

Its been 10+ years since I've done this and it was on another OS, so I've forgotten most of the details on this sort of stuff.  Well in my current job, we've got an email message with pages and pages of what looks like basic ASCII that we think is sourced from a .ZIP file.  Does anybody know of utilities available that will faciliate checking this premise and converting the ASCII back to its original binary format?
I am free, no matter what rules surround me. If I find them tolerable, I tolerate them; if I find them too obnoxious, I break them. I am free because I know that I alone am morally responsible for everything I do.

Headless Thompson Gunner

  • friend
  • Senior Member
  • ***
  • Posts: 8,517
Re: Computing mavens: Base64 to binary conversion
« Reply #1 on: August 29, 2007, 02:02:39 PM »
Copy the email text into a basic text document.  Save it with a .zip filename.  Try to unzip it.

GigaBuist

  • friends
  • Senior Member
  • ***
  • Posts: 4,345
    • http://www.justinbuist.org/blog/
Re: Computing mavens: Base64 to binary conversion
« Reply #2 on: August 29, 2007, 03:49:03 PM »
http://en.wikipedia.org/wiki/Uuencode

Try and find a version of the uuencode / uudecode utilities for your OS.

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Computing mavens: Base64 to binary conversion
« Reply #3 on: August 29, 2007, 03:57:59 PM »
I used uuencode back in the day, but HTG's suggestion may very well work.  I've done that before when an email system tries to inline an attachment like that.

Chris

Tallpine

  • friends
  • Senior Member
  • ***
  • Posts: 23,172
  • Grumpy Old Grandpa
Re: Computing mavens: Base64 to binary conversion
« Reply #4 on: August 29, 2007, 04:27:44 PM »
Quote
Does anybody know of utilities available that will faciliate checking this premise and converting the ASCII back to its original binary format?

I've used a thing called "hex editor" (XVI32 2.4) by Christian Maas.  It's helpful for looking at data and even exe files.

I'm not even sure where I got it now.

Otherwise, I could probably write an ASCII to binary utility in about 30 minutes.
Freedom is a heavy load, a great and strange burden for the spirit to undertake. It is not easy. It is not a gift given, but a choice made, and the choice may be a hard one. The road goes upward toward the light; but the laden traveller may never reach the end of it.  - Ursula Le Guin

Tallpine

  • friends
  • Senior Member
  • ***
  • Posts: 23,172
  • Grumpy Old Grandpa
Re: Computing mavens: Base64 to binary conversion
« Reply #5 on: August 30, 2007, 08:53:25 AM »
Well, Sindawe - did you ever figure it out ...? 
Freedom is a heavy load, a great and strange burden for the spirit to undertake. It is not easy. It is not a gift given, but a choice made, and the choice may be a hard one. The road goes upward toward the light; but the laden traveller may never reach the end of it.  - Ursula Le Guin

Sindawe

  • friend
  • Senior Member
  • ***
  • Posts: 2,938
  • Vashneesht
Re: Computing mavens: Base64 to binary conversion
« Reply #6 on: August 30, 2007, 06:44:48 PM »
Nope.  Our best assessment is that the conversion is corrupt and unrecoverable.  WinZip could not figure it out, nor could several ancient text to binary conversion programs.
I am free, no matter what rules surround me. If I find them tolerable, I tolerate them; if I find them too obnoxious, I break them. I am free because I know that I alone am morally responsible for everything I do.

Tallpine

  • friends
  • Senior Member
  • ***
  • Posts: 23,172
  • Grumpy Old Grandpa
Re: Computing mavens: Base64 to binary conversion
« Reply #7 on: August 31, 2007, 06:26:15 AM »
So what does the sender (a customer ...?) have to say about this file?

Why did they send it to you and what do they want you do to with it Huh?



As far as "text to binary conversion" - there is really no such thing other than the way you look at the file contents.  The (any) file is nothing more than a series of bytes (each one representing 0-255).  If you open such file in a text editor, it's just going to display the ASCII character associated with that number (a char may be "unprintable" such as Bell or Backspace).  If it wasn't intended to be text in the first place, then you're going to see mostly gibberish.

You probably knew all that anyway ....  rolleyes

I could write a program that displayed 'A' as "10000001" but that probably wouldn't help you very much.  laugh
Freedom is a heavy load, a great and strange burden for the spirit to undertake. It is not easy. It is not a gift given, but a choice made, and the choice may be a hard one. The road goes upward toward the light; but the laden traveller may never reach the end of it.  - Ursula Le Guin

Firethorn

  • friend
  • Senior Member
  • ***
  • Posts: 5,789
  • Where'd my explosive space modulator go?
Re: Computing mavens: Base64 to binary conversion
« Reply #8 on: August 31, 2007, 05:35:30 PM »
Most programs that deal with these systems (mail and usenet clients) today have the capability to automatically deal with the data.

If it didn't, that's likely a signal of corruption, and that's something that your standard zip program can't deal with.

If it'd been a RAR where somebody got paranoid with the recovery data, you might get lucky.