Re: File extension is .txt for gpg import. Is that ok?
On 06/13/2013 03:20 AM, Anilkumar Padmaraju wrote: > Hi Gnupg Users, > > I have question that on of the user gave a file to import and the file > is having .txt extension, for example test.txt. I usually import > files having .asc or .gpg extensions. Can I do "gpg --import > test.txt" with that .txt file extension? If it has "-BEGIN PGP PUBLIC KEY BLOCK-" on the first line you will probably be fine on 'nix since gpg and gpg2 look at what is in the file to determine if it is safe to do a --import or not. There is one caveat here. On OpenSuSE it refuses to do the following assuming the file "Picture." is actually an image file: $ eog Picture. & Will fail. They have made it so eog and many other utilities will fail unless you have have the proper extension. For this one, if "Picture." is jpg file, even this rename $ mv Picture. Picture.gif $ eog Picture.gif & will still fail. Ergo, you should probably make sure the file has the proper extension. It takes just a few seconds to do it. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: File extension is .txt for gpg import. Is that ok?
On 13-06-2013 5:20, Anilkumar Padmaraju wrote: > I have question that on of the user gave a file to import and the file > is having .txt extension, for example test.txt. I usually import > files having .asc or .gpg extensions. Can I do "gpg --import > test.txt" with that .txt file extension? Yes, no problem. Otherwise you could probably rename it to .asc if some program you use depends on the extension. Just open it wit a text editor and see how it looks to see if this will work, if it has somewhere a line like -- BEGIN PGP ENCRYPTED MESSAGE it probably will. -- ir. J.C.A. Wevers PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
File extension is .txt for gpg import. Is that ok?
Hi Gnupg Users, I have question that on of the user gave a file to import and the file is having .txt extension, for example test.txt. I usually import files having .asc or .gpg extensions. Can I do "gpg --import test.txt" with that .txt file extension? Thank you, Anil. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users