From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.252.170 with SMTP id zt10mr194722pac.34.1378262168712; Tue, 03 Sep 2013 19:36:08 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!Xl.tags.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!news.bbs-scene.org!xmission!news.glorb.com!n2no19512240pbg.1!news-out.google.com!z6ni33070pbu.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 03 Sep 2013 21:36:07 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Formatting Re-opened Ciphertext Problem. Date: Tue, 03 Sep 2013 22:36:09 -0400 Organization: IISS Elusive Unicorn Message-ID: References: X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 76.253.110.181 X-Trace: sv3-YPeigI2Ymux34KTSN9SWLEoW3hDOs+4yS+xg4J6zZwEHHNezHy0EJRUYw4W4rfW1ocWkuRqxXRzm0Ax!lnWE2fmWJi0zpk6A10GaXX/OdSlgG0PlJGHHWW+QUJEweKPM5USH1VY2K0YGzfpHNtDprduxVIL6!usF61r2eAa5w2UL8Vf88Ugbe4R27 X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 5409 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Xref: number.nntp.dca.giganews.com comp.lang.ada:183271 Date: 2013-09-03T22:36:09-04:00 List-Id: On Tue, 3 Sep 2013 13:58:22 -0700 (PDT), Austin Obyrne declaimed the following: > >*Alice’s file of ciphertext is copy ‘n pasted as a Word document file in Microsoft Word for calling later to go as the attachment to the email. > Why? I presume it is a text file... Why not just attach the text file to the email... Who knows what Word might do to the contents -- not to mention having to extract the cipher text at the other end before reversing the process. (Especially as "Word document file" encompasses some four or five variants: Word 6 [I think even Word 2010 has stopped supporting that format], Word between v6 and 2007 [proprietary binary format], RTF, and the ZIPped XML format used since Word 2007). Word expects to operate on paragraphs, not plain text. >Problem. > >When Alice encrypts something like say the word ‘milestone’ her ciphertext as integers is stored as a file of some 27 integers of ciphertext – that’s ok – but when she re-opens the file if ciphertext again in her gnat 311.p editor (AdaGIDE editor) so as to make it into a Word document for sending to Bob (which AdaGIDE is an Ada IDE developed for educational usage (Air Force Academy). It is optimized to display formatted Ada source files of (relatively) small size (since GNAT works with separate spec/body files -- source files from compilers that allow multiple spec/body/packages in one file have to be "chopped" to work in the GNAT world -- so an editor doesn't have to work with significant sized files) >she can do ok) she finds that the spacing between the integers is now four spaces between each integer instead of what she would like to be just 1 conventional space. This increases the volume of ciphertext to be copy 'n pasted as a Word document considerably which she does not want. So... What character was being used in the program to separate these integers? If the program is separating each integer with a TAB character, then seeing four spaces is quite likely the correct behavior. Or could these integers be written using a formatted write specifying a fixed width, which is wider than that needed for the integer. > >The upshot is that the eventual file of ciphertext in the case of a large file (of 30000 characters actually to hand) being sent to Bob as a word document is so large now because of the enlarged spacing that his editor can’t take it and he can only decrypt a portion of the full message (which he can do ok – but stops at 992 characters instead of 30000). All of this because of the spacing in the ciphertext being 4 spaces instead of 1. > I'm pretty sure even W9x Notepad could handle a 30kB file -- so just what type of expansion is this "ciphertext" inflicting... Even a 10:1 expansion is only 300kB, which is in the noise. But again, this shouldn't matter... Just send to ciphertext file itself as the attachment, and feed that to the decipher process directly -- don't try loading into a text editor just to be copied into a Word document for sending, only to reverse that on the other end. >Question: Can Alice control the spacing of the ciphertext by any means when it is reopened after encrypting it initially in her AdaGIDE editor. (I have looked at the tools options in AdaGIDE – ‘interval’ setting? Change it to 1 But no effect) > >In other words can I somehow format the way the ciphertext reopens in the AdaGIDE editor – i.e. can I regulate the spacing to be just 1 space and not 4 spaces. > >Your help would be greatly appreciated. This scheme depends on being able to solve this problem. It is a good scheme otherwise. > >Thanks in anticipation. > >Adacrypt -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/