Re: GnuPG language setting
On Mon, 30 May 2011 23:10, makro...@gmail.com said: I wish application developers would understand a simple fact: language choice can't be computer-wide, it must be *application specific*. Language choice is user specific, however users may start applications with other language setting (cf. envvar LANG). All modern systems (~15 years and more) use sensible defaults and allow switching to other languages. In fact at least on GNU systems you may do this even on a per thread base. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
help
Hello I'm working on asymmetric keys for encryption and decryption of files. I am going to encrypt data on sender PC using receiver's public key and send encrypted data to receiver in order to decrypt it using its private key. I have two PCs (A and B). I created a (public key, private key) on A and sent its public key to B. the public key is attached. Then I tried to encrypt a dir using gpgdir command. But I encountered below error. I'm wondered why gpg is looking for A's private key? Whenever we don’t want B knows the private key? How can I fix it? # gpgdir --verbose -K el_ghas...@yahoo.com -e /home/yousefi/Desktop/a [+] import_perl_modules(): The @INC array: /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl . [+] Executing: gpgdir --verbose -K el_ghas...@yahoo.com -e /home/yousefi/Desktop/a Using GnuPG key: el_ghas...@yahoo.com Enter password (for initial encrypt/decrypt test) Password: 21961363 [+] test_mode(): Encrypt/Decrypt test of gpgdir_test.2902 [+] test_mode(): Created gpgdir_test.2902 Reading passphrase from file descriptor 9 pub 1024R/18EA55AA 2011-05-30 ghasemi (this is a encrypt test) el_ghas...@yahoo.com Primary key fingerprint: C4F9 1073 B733 C752 C18C EF81 1BFC 4C86 58C0 723B Subkey fingerprint: D953 4E49 13CA 998C BF0F 3CE5 7E3A 9360 18EA 55AA It is NOT certain that the key belongs to the person named in the user ID. If you *really* know what you are doing, you may answer the next question with yes. Use this key anyway? (y/N) y gpg: 18EA55AA: There is no assurance this key belongs to the named user [+] test_mode(): Successful encrypt of gpgdir_test.2902 Reading passphrase from file descriptor 9 GnuPG errors: gpg: encrypted with 1024-bit RSA key, ID 18EA55AA, created 2011-05-30 ghasemi (this is a encrypt test) el_ghas...@yahoo.com gpg: decryption failed: secret key not available GnuPG status: [GNUPG:] ENC_TO 7E3A936018EA55AA 1 0 [GNUPG:] NO_SECKEY 7E3A936018EA55AA [GNUPG:] BEGIN_DECRYPTION [GNUPG:] DECRYPTION_FAILED [GNUPG:] END_DECRYPTION [*] Created zero-size file: gpgdir_test.2902 Bad password? Try with --verbose at /usr/bin/gpgdir line 642. Best regards___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Using output from gpg --list-packets on a key to get the mpi values to generate s-expressions
Hey guys, I am trying to use gpg generated public keys to do encryption using libgcrypt. I used the list packets command on the key to get me the contents of the key and parsed the mpi values into an s-expression. So when I try to encode my session key with my public key I get the error Odd hexadecimal numbers in S-expression? I think list packets is maybe giving me hex numbers without the leading zero? If so what do I need to do to get me mpi values that I can use in libgcrypt? Thanks in advance, Foo ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users