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

You don’t need PyCrypto or PyMe, fine though those packages may be – you will have all kinds of problems building under Windows. Instead, why not avoid the rabbit-holes and do what I did? Use gnupg 1.4.9. You don’t need to do a full installation on end-user machines – just gpg.exe and iconv.dll from the … Read more

Encrypt in Javascript, decrypt in PHP, using public-key cryptography

I’ve used something similar for my login page; it encrypts login credentials using the given public key information (N, e) which can be decrypted in PHP. It uses the following files that are part of JSBN: jsbn.js – to work with big integers rsa.js – for RSA encryption only (uses jsbn.js) rng.js – basic entropy … Read more

Encrypt files using PGP in PHP?

Question 1: About PGP PGP (Pretty Good Privacy) is a product and trademark of Symantec Corporation (they bought it some years ago). OpenPGP is the standard used by PGP. GnuPG (Gnu Privacy Guard) is a free and open source implementation of PGP. So what you want to do is encrypt to an OpenPGP key. Which … Read more