LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2009, 06:18 PM   #1
darius1
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
How to decode hex-octets to 8-bit octets, than to 7-bit default alphabet ?


Hi,

I am trying to understand decoding algorithm, to write a shell script
to decode/encode ASCII to hexi-decimal and vice versa.

---
8-bit octets respresenting 7-bit data

decoding

12 hex-octets
C8 F7 1D 14 96 97 41 F9 77 FD 07

C8F71D14969741F977FD07
I should get
"
How are you?
"

I get
LÉFØæ)Ξ:É.ü¥
Å


In the example
8-bit octets are further converted to 7-bit default alphabet

I can provide you with demo converter details from a web page, if you are interested.

Darius
 
Old 04-18-2009, 10:49 AM   #2
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[567] x86_64, Ubuntu 17.10 x86_64
Posts: 221

Rep: Reputation: 36
Quote:
Originally Posted by darius1 View Post
Hi,

I am trying to understand decoding algorithm, to write a shell script
to decode/encode ASCII to hexi-decimal and vice versa.

---
8-bit octets respresenting 7-bit data

decoding

12 hex-octets
C8 F7 1D 14 96 97 41 F9 77 FD 07

C8F71D14969741F977FD07
I should get
"
How are you?
"

I get
LÉFØæ)Ξ:É.ü¥
Å


In the example
8-bit octets are further converted to 7-bit default alphabet

I can provide you with demo converter details from a web page, if you are interested.

Darius
This has been done before in several different ways. Take a look at the uuencode and uudecode programs in your Linux distribution and understand how they work. Then download their source and examine how they go about doing that.

Good Luck,
bgoodr
 
Old 04-18-2009, 06:07 PM   #3
darius1
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bgoodr View Post
This has been done before in several different ways. Take a look at the uuencode and uudecode programs in your Linux distribution and understand how they work. Then download their source and examine how they go about doing that.

Good Luck,
bgoodr
Thanks.
I need to convert 8-bit octets to 7-bit default alphabet and vice versa.

From uuencode Wikipedia examples
http://en.wikipedia.org/wiki/Uuencode

Uuencode table

The following table represents the subset of ASCII characters used by UUEncode and the 6-bit binary string they represent

(see link above).

Darius
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
Triple Boot Suse 10.3 32 bit, suse alpha 11.0 64 bit and Windows XP (32 Bit) 1kyle SUSE / openSUSE 1 02-28-2008 10:25 AM
Program to decode PPP response from hex Fredde87 Linux - Software 3 07-12-2007 03:04 AM
printing 64 bit hex number lilzz Linux - Newbie 8 08-20-2006 08:16 PM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration