comp.lang.ada
 help / color / mirror / Atom feed
From: Austin Obyrne <austin.obyrne@hotmail.com>
Subject: Re: Calling a File for Encryption from outside of the Main Ada-95 Holding Folder.
Date: Wed, 4 Sep 2013 23:57:16 -0700 (PDT)
Date: 2013-09-04T23:57:16-07:00	[thread overview]
Message-ID: <00759236-6182-4908-ad4c-d76dfc805027@googlegroups.com> (raw)
In-Reply-To: <e7tf29t30ivhvdm2qnfu8djbgn71n4or1u@4ax.com>

On Thursday, September 5, 2013 4:16:17 AM UTC+1, Dennis Lee Bieber wrote:
> On Wed, 4 Sep 2013 04:10:13 -0700 (PDT), Austin Obyrne <austin.obyrne@hotmail.com> declaimed the following: I'm going to snip a lot of this and get to one point... >Up to now I thought a file of plaintext for encryption always has to go through the AdGide editor for the compiler to 'see' it - True or false. > The "compiler" NEVER sees the plaintext... The compiler is used to "compile" the source code of the encryption /program/ into an executable. The executable program is what has to see the plaintext as input, and produce some other file as the encrypted output. The simplest way is probably to use stdin and stdout via command line redirection (a feature of the operating system, not of the language/compiler). If the "key" is a compiled in constant, this would mean using a command line on the form of: encrypt <plain.txt >cypher.txt The next step above would be to use the language features to access the command line arguments. That would let one enter a "key" on the command line, along with the file names encrypt thisISaK3y plain.txt cypher.txt Note how none of the above is sensitive to the language -- Python, Ada, C/++, Java ALL react the same way. You'll forgive if I don't take the time to actually code an example -- it's going on 2330 hours and I need to go to work in the morning... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Many thanks again Dennis.  I think I have solved the problem from a UserGuide perspective by putting the text file throght the adaGIDE editor - it seems to 'ratify' it as being an Ada compatible workpiece and does the trick - most users won't know anything about Ada so this ritual will be acceptable to them.

It slays me when I have to go through diverse interfaces like command lines etc - a huge amount of work has gone into the crypto side of things and I'm afraid I am running out of steam at my age (80 next Christmas).

Thanks once more for everything - I think I can say problem solved.

Austin.


      reply	other threads:[~2013-09-05  6:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 11:10 Calling a File for Encryption from outside of the Main Ada-95 Holding Folder Austin Obyrne
2013-09-04 19:37 ` Austin Obyrne
2013-09-04 19:47   ` Eryndlia Mavourneen
2013-09-04 20:23     ` Austin Obyrne
2013-09-04 20:37     ` Austin Obyrne
2013-09-04 21:31       ` Austin Obyrne
2013-09-05  5:39         ` Simon Wright
2013-09-05  7:16           ` Austin Obyrne
2013-09-05  7:56           ` Austin Obyrne
2013-09-05 11:33             ` Simon Wright
2013-09-05 15:46               ` Austin Obyrne
2013-09-05 16:00               ` Austin Obyrne
2013-09-05 16:08                 ` Eryndlia Mavourneen
2013-09-05 16:50                   ` Austin Obyrne
2013-09-05 17:42                     ` Eryndlia Mavourneen
2013-09-05 14:40         ` Eryndlia Mavourneen
2013-09-05 15:38           ` Austin Obyrne
2013-09-05  3:16 ` Dennis Lee Bieber
2013-09-05  6:57   ` Austin Obyrne [this message]
replies disabled

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