|
|
I received a file in the mail which has encoded binary. The only
problem is that I can't figure out how to unencode it. I already
tried uudecode.
FYI, the first lines are:
^GBINARY FILE FOLLOWS
xbtoa Begin
s&W#adi&2d!=Af-zqu6g"1&qjd!!!6('EA+563$uc%ffW1!!$%"!!!E-=o\O&X8i5#s8NE+!!!3(!!
#](FED)7+@g?lBPCs!0f!6XB`P^Es8RoU56,3oA,p-?$ig;.!!!"J:;R$B!<*]k&6K/;!!!!15`PhW
Does anyone have any clues?
18 responses total.
That's a "btoa" (binary to ASCII) file, it's like uuencode, but a different program. You need to use the program "atob" to convert it back to binary. (Three bonus point for figuring out what "atob" means.) Unfortunately, Grex doesn't seem to have these programs any more. Anyone know where carl (or anyone else) can get a usable atob program?
I've got it somewhere on another system. I'll look and see if I either have the source, or if it's a shell script that can easily be brought over.
Hmmm, for those bonus points, ummm, dos2unix - - no, how about unix2dos - errp, that dosen't work .......OH! ascii-to-binary! Yeh! Third time's a charm, right? This file came from overseas, are btoa and atob precursors of uu[en/de]code?
The source code to atob/btoa is available from oak.oakland.edu in the /pub/unix-c/mail directory. The file is "btoa.tar.Z" and it's about 20K. Given that it's not something that is universally accepted on the Net, like uuencode, I have a hunch the staff here won't see much reason to install it on Grex. It should compile rather easily (at least, the makefile has no surprises) if you want to make it for your own use. I can e-mail you a uuencoded copy of btoa.tar.Z, or put it in /tmp if you can't ftp it yourself.
This response has been erased.
Funny isn't it, how there isn't a problem installing a program few people will use, but a popular program generates all kinds of objections from staff and may never get installed... Anyway, if staff want to install btoa, it's in my home dir.
I have a short memory, Kent. What program is that? (And whichever one it is, I'll bet the objections aren't based on its popularity.)
It would be nice to have uqwk installed. The main objection at this point is that it *can* (but does not necessarily have to) generate packets which are non-RFC-compliant. Of course a similar argument could be used against btoa, albeit not in RFC terms (do we want people using a binary encoder that compresses; will it work when people try to use uudecode on a btoa file? Is btoa well enough accepted to be a standard for information exchange?). My remark was mostly tongue-in-cheek musing, btw. Go ahead and install btoa if you want.
Rob and Kent, thanks for your help. Kent, is there some way I could get a copy of it? I tried to cd to your directory and got a "permission denied".
I'll put a copy in my home dir and I'll see what I can do about the perms. (I'll e-mail you about it).
Has atob been installed on Grex? I can't seem to find it.
We had it aeons ago (i.e. 1992) but I don't think it's here now. I'll see if I can find the source code somewhere.
This response has been erased.
That was me. Since it was in my /tmp directory, I assume it's toast now. Let me know if it's still needed.
(I sent you mail about that, when it was warm bread but before it was toast...)
I don't need it anymore. I asked the person sending the file to uuencode instead and resend. Worked fine. Thanks muchly all.
Well tough. We're going to install it anyway. :)
This response has been erased.
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss