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 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!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.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: Wed, 04 Sep 2013 22:16:15 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Calling a File for Encryption from outside of the Main Ada-95 Holding Folder. Date: Wed, 04 Sep 2013 23:16:17 -0400 Organization: IISS Elusive Unicorn Message-ID: References: X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 76.249.18.180 X-Trace: sv3-7h4UdOBGXwRX4H6ILGtaohGu76E3DjiwNDPpFWDnLsqfjNh3SplKGWOUiPe7Tde6KnXCQ4t/joULQmS!29O39ljxojmD6c5NFjoR+zC1FUECNczOlupSei1xZ06/fqbRfxFZeDVPRiyMxXu5RYN54flTvysq!Ih1TwbYZdW4fpcummDteR0GybuU= 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: 2628 Xref: news.eternal-september.org comp.lang.ada:17122 Date: 2013-09-04T23:16:17-04:00 List-Id: On Wed, 4 Sep 2013 04:10:13 -0700 (PDT), Austin Obyrne 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 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/