|
Home Table Of Contents Support Pages Feedback & Contact Apple Computer, Inc. Mirror Sites Huh? |
By Robert Dorsett
Binhex is both a set of application utilities and storage protocols developed by Yves Lempereur in 1984 and 1985. You can find Binhex at the following ftp sites:
Why Binhex?Binhex translates a binary representation of data (which could be an application program, graphical image, sound, or other file type) into an encrypted text representation of that file. There are two reasons for doing this:
How Can You Tell if it is a Binhex File?Binhex 4.0 files have a suffix of ".hqx". Binhex 2.0 files have a suffix of ".hex". Binhex 4.0 has been out since 1985, and it is very rare to see any ".hex" files anymore.A Binhex file can be identified by the first line of the file:
(This file must be converted with Binhex 4.0) This line is followed by one blank line, followed by the start of the data:
:%@0bBA0SG(0d,Qe`Cbdi0$Bi!%e348GY69"(!*!$",!!N!92!J!!!E-2!,35rrr The data block begins and ends with a colon.
What are the Versions of Binhex?Binhex is available in either 4.0 or 5.0. Both versions of Binhex are freeware. Binhex 4.0 simply converts files into Binhex encoded files and back to the file format it was before. Binhex 5.0 is a bit more complicated because it works with MacBinary documents. It does not work with Binhex 4.0 encoded files.
What is a MacBinary Document?Macintosh files have two components, a data fork and a resource fork. In addition, they have header information specific to the file system, plus additional information which is stored in the Desktop database. Binhex 4.0 documents take all of this into account, when transferring data from system to system.If you are not sending a binary file through the Internet, or a mail system, you should consider using MacBinary instead. There are several reasons to consider using MacBinary over Binhex including file size, time, and additional effort converting the file. Binhex files are usually larger than the equivalent Macintosh (binary) file. In addition, when you use Binhex, you have to encrypt and decrypt every file which can be time consuming, especially if you download a lot files. In order to avoid these things, you can upload the file as a MacBinary file. When you do these, the file is stored online as a standard binary file. Once it is downloaded, if your communications software supports MacBinary, the file automatically reassembles into a Macintosh file or application. If your communications program does not support MacBinary transfers you end up with a binary file with Macintosh header information. Until this file is properly converted to a standard Macintosh file, you will not be able to use it. If you try to open the MacBinary encoded file SimpleText may try top open the file. If this happens nonsense is produced on the screen. Binhex 5.0 addresses this issue by converting binary documents back into Macintosh applications or files. Since it does not translate Binhex 4.0 files, you should not use it unless you have MacBinary files which were not properly translated. Since most online services and communications software will automatically perform MacBinary transmissions, or at least allow you to select MacBinary as an option, it is not generally not necessary to use Binhex 5.0.
UUencode and UUdecodeUUencode and UUdecode were developed in the UNIX environment, and perform a similar function to Binhex 4.0 encryption; they convert raw binary into an alternate text representation. This format is generally not suitable for transferring Macintosh applications, because it does not address differences between resource and data forks, or Desktop issues. UUencode and UUdecode only use the information in the data fork of files. UUencode and UUdecode are, however, widely used on both UNIX and PC systems, and they are standards. It is likely a user will deal with this format to process data which only has a data fork.The Tech Info Library article "UUencode & UUdecode: Explained" gives additional details on using UUencode and UUdecode encryption methods. This article is available online and will appear in the next issue of the Information Alley.
[Previous] [Top] [Next] |
||||
"The Information Alley", in all formats, is copyright Apple Computer, Inc.
All Rights Reserved.