gnupg

GnuPG: "decryption failed: secret key not available" error from gpg on Windows

Environment: HP laptop with Windows XP SP2 I had created some encrypted files using GnuPG (gpg) for Windows. Yesterday, my hard disk failed so I had reimage the hard disk. I have now reinstalled gpg and regenerated my keys using the same passphrase as earlier. But, I am now unable to decrypt the files. I get the following error: ...

Is GnuPG compatible with McAfee eBusiness Server 7.1?

Right now, we're using PGP command line 9.0. Does anybody know if GnuPG will work? It'd be a lot cheaper. ...

Batch file script to remove special characters from filenames (Windows)

I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with underscores for example e.g. Störung%20.doc would be renamed ...

Recommended key size and type for GnuPG?

A Practical Introduction to GNU Privacy Guard in Windows recommends DSA and ElGamal, but I would like to know if RSA is good enough to use these days, and if so, what minimum key size should I use? Is it ok to use SHA-256 for signing (for compatibility with e-mail clients)? Also, beside e-ignite: Key Types, can you point to other source...

GnuPG and CreateProcess in Delphi Service

Hi! Trying to use GnuPG with Delphi (Win32). I need to sign some file with such console command: "C:\Program Files\GNU\GnuPG\gpg.exe" -a -u Alex --passphrase secretpassword --yes --clearsign -o C:\Result.asc C:\InputFile.txt First I created normal VCL Forms App and used CreateProcess function, everything was OK, but when I transfer...

Best way to soft brute-force your own GPG/PGP passphrase?

I created a nice long passphrase, used it a few times, then forgot it ;) The twist is, I know the general theme and probably almost all of the characters. The perfectionist in me doesn't want to revoke the key or anything like that (and I think I need the passphrase to revoke it anyway, right?). I feel I should be able to have a good go ...

How to do PGP in Python (generate keys, encrypt/decrypt)

I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the publi...

Encrypted and signed MIME messages using RFC 1847

I need a client-server encryption solution for web transfer, (i.e. signed and encrypted client-side, and verified and decrypted server-side). I am using HTTP, but SSL is not available due to shared hosting restrictions (my server is a shared host environment). Looking into alternative solutions, I have decided on OpenPGP using GnuPG. On...

GnuPG Wrapper with C#

Hi. I use GnuPG and C# to encrypt files with imported public keys. But when I try to make encryption, GnuPG encrypt file with public key of main user. I'm sure that I pass right recipient. Any help is appreciated. Thanks. ...

How to use GNUPG and Crypt_GPG

Hiya, I'm trying to use GNUPG and Crypt_GPG to encrypt data ready to be sent across email to a client server but i'm having problems setting it up. I've installed GNUPG on the server, and it works just fine, located in /home/myserver/.gnupg I've installed Crypt_GPG into /home/myserver/php/Crypt and edited the various files to have ab...

Is there any module that allows Django/Python to work with gnupg?

I was wondering if there's any django module, or in such case any python module, that will allow me to create my own application to manage the creation, administration, etc of GnuPG keys, as well as the ability to sign and encrypt documents through this application? If there's no such module, how can I do that? Thank you. ...

Is there a good GnuPG encryption library for Java/Scala?

I would like to be able to encrypt files on disk and/or data in memory using GnuPG from a Java application. If possible I'd like to avoid having to make system calls out to the GPG command line tools. Is there a recommended library, or can you recommend the best approach to GPG encrypting from Java (or Scala)? I'm developing and inten...

PGP - GnuPG - A few questions

I want to use GnuPG (http://www.gnupg.org/), the open source software that is a full replacement for PGP. The software looks great though I have never used it before. I will be using the software to encrypt files to transfer via the web, I am not using the software for emails. I have a few questions: 1) What are recommended GUI's av...

PGP/GnuPG to encrypt

Need to use PGP/GnuPG to encrypt.can suggest what the Python packages to use that. for PGP encryption i.e. on the other side is PGP used to decrypt. ...

GnuPG - How to edit the file without decrypt and save to local disk first?

Hi, I'm using GNUPG to encrypt my ascii files. I learnt to generate a key, also how to use the it to encrypt and decrypt a file. There are two ways I used: gpg -d foo.txt.gpg & gpg --output foo.txt --decrypt foo.txt.gpg I realized the first method will display the decrypted file on the screen, for example when I executed ...

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...

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...

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...

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 ...

Trusted development path in git with signatures

I'd like to build a trusted path for software development. This means that every change in to code must be signed by the author and one reviewer, before being accepted. These signatures for the changes must be verifiable at release time, or there must be some other means of making sure the repository can not have been tampered, or additi...