gpg

Signing messages with PyMe (GnuPG Python Wrapper)

Hi, I use PyMe to sign and verify messages. I have a problem setting a pass-phrase callback that will return a password for the private signature key whenever needed for signing. My code looks like this: def passphrase_callback(hint='', desc='', prev_bad=''): return 'password' class CryptoEngine: def init(self, user_id, passph...

Using passphrase callback in ruby gpgme

I am using ruby gpgme gem (1.0.8). My passphrase callback isn't called: def passfunc(*args) fd = args.last io = IO.for_fd(fd, 'w') io.puts "mypassphrase" io.flush end opts = { :passphrase_callback => method(:passfunc) } GPGME.decrypt(input,output, opts) Does someone have working example of passphrase callback? ...

Encrypting query string text

I have a concatenated string and I want to pass it as query string. For security, I want to encrypt the concatenated string using gpg private key that resides in the same folder where this .php file resides on the remote server. I want to know whether it is safe to keep the public and private keys on the remote server and use it for enc...

Licensing questions

I'm including a copy of ffmpeg, and probably GPG too. I will be calling them as subprocesses from a python app I'm creating. I'm distributing this and I'm wondering a) since I'm not using the library, I'm simply executing both programs within the python app, I do not have to release the source to my app right? b) do I need to obtain lic...

GPG key import through PHP not working (works in shell)

Hello, I have to import a GPG key in a PHP script, it works using the commande line gpg --import "/home/me/pubkey.txt" but does not work using the PHP gpg class with the import method even with the gnupg_import function. My configuration is : RedHat Enterprise Linux 5 PHP 5.1.6 GnuPG 1.4.5 GPGme 1.1.8 GPG extension 1.3.1 I also...

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., a...

how are pgp keys formatted?

i want to write a program in python to simply read pgp keys. however, i cant seem to find any documentation describing how pgp keys are formatted. i dont want to be searching through the source code of open pgp to look for source code that i wont be able to understand. say i open a public key, remove the top "-----BEGIN PGP PUBLIC KEY ...

Generating a Core Dump File of a child process

I'm trying to run gpg from my php script using exec(). But it chashes with segmentation fault: "gpg: Segmentation fault caught ... exiting" It crashes within a child process so my php script works ok. To identify a problem I wanna get a core file. I tried to run ulimit -c unlimited echo 1 > /proc/sys/fs/suid_dumpable I added "* soft...

php script to call gpg commands

system() call in php used to call external program .How can i call gpg (gnupg commands) for encryption through php script. ...

Extracting encrypted bits from PGP SDA?

Apparently PGP on Windows can create Self-Decrypting Archives, by wrapping an encrypted piece of data in some executable code. Is there some way of extracting the encrypted bits and use GnuPG on Linux to decrypt? ...

GnuPG Shell Script - Refuses to read password

The script below used to work on Mac OS X, but, since moving it to Ubuntu, it doesn't seem to read from the password file at all. Even when I run it from the command line, no matter what I do, I get a popup prompt asking me for the password. As this will run via cron, I don't want this to happen... I want it to read the password from ...

gpg error - connection already closed?

omg... hope someone can help me because I am so lost as to what to try next.... I don't know what is causing the error to happen, and I don't see how to figure it out... Keep going between the pgloader.conf examples and what I have, and I don't understand why I keep getting the 'connection already closed' error? The first few lines of...

Python + GPG (edit-key change password)

Hi to all I'm looking for a gpg Python library that let me change password for my key. I saw python-gnupg but there aren't that function :( Anyone can help me please? If is possibile i wish have also some examples from docs ...

How to pass variable value to gpg commands

$importkey = system('gpg --import newkey.asc . $username'); need to pass the file name as a variable.so that file name with its contents can be import in gnupg keyring. $gpg = system('gpg --recipient userid --output filename --armor --encrypt filename to encrypt', $retvalue); how can i pass the recipient email id(userid) and the f...

Can I decrypt an encrypted file even if someone modified it?

Warning: This question has been heavily edited. I tried my best to guess the original author's intentions. Please view the original version. I'm unsure on how to use the GPG command line tool, that we're using to encrypt files. File.txt is a simple text file: Testing hello world My security things. This is how I encrypt the fil...

GPG library for Flex 3

Is there any GPG library for Flex 3? It seems hard to find information about this from Google. ...

Fossil gpg workflow for teams

I'm learning fossil and trying to reproduce a workflow for two people modifying the same source code tree. So, Alice and Bob both have local repositories of some source code. Both have autosync off. Alice hacks some more, does some commits signing check-ins with her gpg key. This part is fine, as Alice I've managed to generate gpg keys,...

Sending and Receiving a Email using the gpg encrypt method

Dear Friends, I want to send and receive the file with encrypted format to others using gpg. What can I do for this. Can any one tell me, what I have to do? or give some URL related this. I have read about the following link http://library.gnome.org/users/evolution/stable/encryption.html.en But I am not able to send the mail to oth...

How to transfer pgp private&public key to another computer?

I read this article which explained very well how to setup pgp on osx, but I'm planning to use the generated keys for signing git commits, so I figure I need to transfer the keys to my other computer. Is this correct? and if so how do I go about transferring the keys? ...

Sendmail and gnupg

I am looking for a way to configure wordpress on my RHEL4 machine to send out email notifications using gnupg (sendmail). Can anyone point me in the right direction? ...