GPG symmetric encryption and javascript I have a use case where I need to encrypt some text in the browser using javascript. Only the encrypted text will be stored on the server. The user should then be able to take the encrypted result and decrypt it with GPG on the command line. I want to use GPG as it's easily available and the AES appears to support iteration on passphrase hashing.

I'm hoping to use AES, however I don't understand what iteration count or salt GPG uses.

For example, http://cheeso.members.winisp.net/AES-Encryption.htm allows you to set parameters for AES decryption using Javascript: 

Does anyone know what parameters to use to be compatible with GPG ?
GnuPG follows the OpenPGP format, which is a protocol in its own right -- it uses AES (among other algorithms) but is more complex than "just AES with the right parameters".

There is at least one OpenPGP implementation in Javascript (I have not tried it, though).