comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Information Request.
Date: Fri, 27 Sep 2013 15:46:29 -0700 (PDT)
Date: 2013-09-27T15:46:29-07:00	[thread overview]
Message-ID: <c4cf4dce-c1e5-4654-b914-f08b879e227a@googlegroups.com> (raw)
In-Reply-To: <1eaeed6d-d047-4afc-b424-1713eada95fa@googlegroups.com>

On Friday, September 27, 2013 2:08:02 PM UTC-6, Austin Obyrne wrote:
> 
> In my crypto scheme I'm planning on every message being prepared as a sring of hex.  I'm arguing that this is now a string of plaintext that can be encrypted by any ASCII based encryption program (albeit hexadecimal digits I plan to treat them as alphanumeric characters in ASCII)- it will decrypyt exactly right I can assure everybody.
> 
> Alternatively I might read in the hexadecimal integer (180B say), convert it decimal and use that as the operand in the computaton of my vector ciphertext. The benefit of doing this is that the ciphertext expansion is kept to a minimum.
> 
> Both of these methods require the natural language plaintext to be submitted as a string of hex. That of course requires an interpreter on site.

Er, it sounds to me as if you don't really know what you're talking about. In general, there are two items in play dealing with text: the encoding, and the character-set. Unicode is a character-set [kinda], encoding for Unicode can be 8-bit/variable-length, 16-bit/variable-length, 32-bit/fixed-length. In any case, the difference between the two is this: one maps some bit-sequence to a value (this is the encoding), the other maps a value to a glyph (this is the character-set).

Example:
Value $4C => '<' EBDIC
Value $4C => 'L' ASCII/Unicode
Hex $e2b4a5 => Value $2D25 (via 8-bit encoding) => GEORGIAN SMALL LETTER HOE [unicode]
Hex $00002d25 => Value $2D25 (via 32-bit encoding) => GEORGIAN SMALL LETTER HOE [unicode]

So there are [at least] two different 'mappings' in place when you're talking about text. (Three if you want to talk about typing, as there's something called keyboard scan-codes involved.)


  parent reply	other threads:[~2013-09-27 22:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-27  9:45 Information Request Austin Obyrne
2013-09-27 15:53 ` Shark8
2013-09-27 17:29   ` Austin Obyrne
2013-09-27 18:33     ` Shark8
2013-09-27 20:08       ` Austin Obyrne
2013-09-27 20:34         ` darkestkhan
2013-09-27 22:46         ` Shark8 [this message]
2013-09-27 20:32 ` Oliver Kleinke
2013-09-27 20:37   ` darkestkhan
2013-09-28  8:58 ` Austin Obyrne
     [not found] <01bc8190$f18db140$82b45ec3@newart.artel.it>
1997-07-04  0:00 ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox