I think it depends on how generic you want this support to be. If you had a limited use case you don't have to support CAST5.
In src/openpgp.js we do things like: `new openpgp_packet_encrypteddata().write_packet(openpgp.config.config.encryption_cipher, sessionkey, result);` We default this `openpgp.config.config.encryption_cipher` to 9 which corresponds to AES256. You could override this if you wanted. I think what you're asking though is actually about the Windows PGP key interaction with your PHP library. Unfortunately, I don't know much about the Windows PGP client, but I imagine there is a way to change the configuration options when generating a key. Alternatively you could generate the key with GPG which should provide more flexibility. Does the php author have any suggestions on the key generation you're looking for? Hope this could help. Sean On Tue, Jul 9, 2013 at 6:21 AM, Dr. M. Weihrauch <[email protected]> wrote: > I have a question: > > I would like to encrypt messages with openpgp.js on the client side and > decrypt them with PHP on the server side. However, I have a > Windows-server, where the installation of the GnuPG-library for PHP > seems a little more complicated than on Linux-servers. > > After searching the web, I found a "full" PHP-implementation of PGP here: > > > https://github.com/bendiken/openpgp-php/blob/master/lib/openpgp_crypt_rsa.php > > But the problem is that it does not support CAST-enrypted private keys, > which poses a problem: I used standard Windows PGP to generate a > public/private keypair, then I included the private ASCII-armored key in > the PHP-script and it was not able to decrypt the CAST-encrypted private > key to finally decrypt my message. The author of the software told me > that the Crypt/Math-library for PHP he is using does not support CAST > and therefore he had not implemented that functionality. > > Do you have a suggestion for a PHP-solution, which would be independent > of an installed gpg? > > Thanks > > Martin > > PS: I hope I didn't mix up PHP and PGP ;) > _______________________________________________ > > http://openpgpjs.org >
_______________________________________________ http://openpgpjs.org

