Re: encrypt data, not file, in one line?
slashlars wrote: Problem: I don't want to write temporary plaintext files. Whatever you are doing, you should take into account one simple fact: if you write data in one program to later on read it in the next one, *you* have (some) control over what and where remains on that disk. If you "pipe" data from one program into another using the shell, *the system* writes pieces of "pipe" on the disk, and you have little or no control over what and where will be left on that disk. cdrok ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: encrypt data, not file, in one line?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 C. D. Rok wrote: > slashlars wrote: > >> Problem: I don't want to write temporary plaintext files. > > > Whatever you are doing, you should take into account one simple > fact: if you write data in one program to later on read it in > the next one, *you* have (some) control over what and where > remains on that disk. If you "pipe" data from one program into > another using the shell, *the system* writes pieces of "pipe" > on the disk, and you have little or no control over what and > where will be left on that disk. I think you may be up to the whim of the system in any case. In UNIX and probably Linux systems, data in pipes tends to remain in RAM from when it it placed into the queue and when the consuming process reads it out. There is a limit (once it was something like 1024 bytes) on how much the producing process would write until it blocked, and it would unblock only when the consuming process emptied it out. - -- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jerseyhttp://counter.li.org ^^-^^ 10:20:00 up 13 days, 16:56, 3 users, load average: 4.44, 4.27, 4.20 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqvVuPtu2XpovyZoRAkQKAKCZPxbJfBnbNBKKNGZbFi5oFRPaQQCdE2Zi KFTrviW3+t/YKpYgDrjEKUw= =6NH9 -END PGP SIGNATURE- ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: encrypt data, not file, in one line?
What about: " echo SOME DATA HERE|gpg ... " This is not valid using just the standard execution methods under windows IIRC, but if you are using the cmd.exe shell it should work. 'echo' is a shell builtin. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: encrypt data, not file, in one line?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe Smith wrote: > What about: > " > echo SOME DATA HERE|gpg ... > " > This is not valid using just the standard execution methods under > windows IIRC, but if you are using the cmd.exe shell it should work. > 'echo' is a shell builtin. I know next to nothing about Windows. In Linux (and probably any other UNIX system), ECHO(1) FSF ECHO(1) NAME echo - display a line of text SYNOPSIS echo [OPTION]... [STRING]... DESCRIPTION NOTE: your shell may have its own version of echo which will supercede the version described here. Please refer to your shell's documentation for details about the options it supports. ... In the Linux case, I can run: $ echo SOME DATA HERE | gpg -e -r jdbeyer >gpg.out and produce an output file that can be decrypted to produce the original. Surely that would have fit a pipe, so nothing need be written out to disk. - -- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jerseyhttp://counter.li.org ^^-^^ 15:05:00 up 13 days, 21:41, 3 users, load average: 5.09, 5.07, 5.04 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqzlFPtu2XpovyZoRAnplAKCM/5BMoPm7rq0RctQlqHk35oEA/wCgvUzg /47OJitadZWmuMA0HtMDlns= =qcBD -END PGP SIGNATURE- ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users