Re: gpg encrypt always creates a new encrypted file

2019-10-28 Thread Brian C via Gnupg-users

Writing over the original file as "gpg -encrypt foo && mv foo.gpg foo"
would do will also :potentially: leave remnants of the original
unencrypted file around. The encrypted file will most likely be smaller
(if plain text) than the original, thus not as many blocks may be
used... also, I don't think a file system would ensure the :same: blocks
will be used, so writing over the original file may not actually
overwrite the original at all.

I would suggest after creating the encrypted file, use a command such as
"wipe" to securely delete the original file rather than trying to
overwrite it.

Brian


On 10/28/19 2:40 PM, vedaal via Gnupg-users wrote:
> On 10/28/2019 at 3:43 PM, "Phillip Susi"  wrote:Anil 
> Kumar Pippalapalli via Gnupg-users writes:
> 
>> Hello,
>> I am trying to encrypt a file on my system using gpg —encrypt command but it 
>> always creates a new encrypted file I want to overwrite the original file 
>> instead so that I can only open it using passphrase. Is this possible.
> 
> gpg -encrypt foo && mv foo.gpg foo
> 
> =
> 
> Alternatively, if you want no record of the plaintext  written to a file at 
> all, you can type it into the command line, and have only the encrypted 
> output written:
> 
> printf "whatever you write as plaintext" | gpg -a -e -r -o -filename.gpg | 
> more
> 
> (obviously not intended for big files, or non-text files, but occasionally a 
> useful workaround if you aren't comfortable with your system's 'wipe' 
> process.)
> 
> 
> vedaal
> 
> 
> ___
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg encrypt always creates a new encrypted file

2019-10-28 Thread vedaal via Gnupg-users
On 10/28/2019 at 3:43 PM, "Phillip Susi"  wrote:Anil Kumar 
Pippalapalli via Gnupg-users writes:

> Hello,
> I am trying to encrypt a file on my system using gpg —encrypt command but it 
> always creates a new encrypted file I want to overwrite the original file 
> instead so that I can only open it using passphrase. Is this possible.

gpg -encrypt foo && mv foo.gpg foo

=

Alternatively, if you want no record of the plaintext  written to a file at 
all, you can type it into the command line, and have only the encrypted output 
written:

printf "whatever you write as plaintext" | gpg -a -e -r -o -filename.gpg | more

(obviously not intended for big files, or non-text files, but occasionally a 
useful workaround if you aren't comfortable with your system's 'wipe' process.)


vedaal


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg encrypt always creates a new encrypted file

2019-10-28 Thread Phillip Susi
Anil Kumar Pippalapalli via Gnupg-users writes:

> Hello,
> I am trying to encrypt a file on my system using gpg —encrypt command but it 
> always creates a new encrypted file I want to overwrite the original file 
> instead so that I can only open it using passphrase. Is this possible.

gpg -encrypt foo && mv foo.gpg foo



___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


gpg encrypt always creates a new encrypted file

2019-10-28 Thread Anil Kumar Pippalapalli via Gnupg-users
Hello,
I am trying to encrypt a file on my system using gpg —encrypt command but it 
always creates a new encrypted file I want to overwrite the original file 
instead so that I can only open it using passphrase. Is this possible.

Thanks,
Anil
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Should gpg try to connect to TCP/993?

2019-10-28 Thread Werner Koch via Gnupg-users
On Fri, 25 Oct 2019 12:23, Jay Sulzberger said:

> Is the following correct:
>
>   When I use gpg to just encrypt or decrypt a file already on my
>   computer/OS's file system, then gpg does not open any formal
>   channels of communication going outside my computer/OS.

No.  By default gpg may go out for key discovery, CRLs, version checks
etc.  If you do not want this you can use the gpg option
--disable-dirmngr or, to be 100%, do not install dirmngr.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users