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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Binary versus text and compiler versions, was: Re: Will Ada-95 Programs Written in MS Windows Run in MacOS and Linux Without Some Tweaking. Date: Wed, 11 Dec 2013 09:35:02 +0100 Organization: cbb software GmbH Message-ID: References: <1d445f04-b670-444f-9858-55da271fe17a@googlegroups.com> <2b6dc37f-4aa6-4c18-be59-8c09f6f37f01@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: I5Na6+WsEzT8WoegI0VZTA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:17942 Date: 2013-12-11T09:35:02+01:00 List-Id: On Tue, 10 Dec 2013 23:08:40 +0000 (UTC), Simon Clubley wrote: > On 2013-12-10, Randy Brukardt wrote: >> >> But if I was writing this sort of code, I wouldn't worry about line endings >> at all, and simply encrypt the file as binary data, using Stream_IO to read >> it in and out. > > Thank you. That's one of a number of things I don't understand about this. > > A serious encryption tool is going to treat the input as a opaque stream of > bytes not as text. That depends. I remember porting early versions of PGP to SysV and VMS, back in early 90's. It was all about text files which must have been converted, recoded etc in order to be readable. > I don't encrypt pure text, but I _do_ encrypt full directory trees which > may have a mixture of text and binary files within them. No difference. Extrapolating your logic, there is no tree and no files just a chunk of disk image. Directory tree is no better abstraction than lines of a text file. It works so long all targets share the abstraction. For either directory trees or text files that does not hold. Having said that, I strongly believe that whatever encryption, it should be done on the transport layer and never on the application layer. So in the end I agree with you, but not with your argument. > I don't understand how someone who claims to have invented something new > cannot realise this. Yes, Op's postings leave a quite strange impression. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de