gpg symmetric to Java JCA decryption
Juergen Weber
weberjn at gmail.com
Fri Mar 19 21:51:40 CET 2010
Hi,
has anybody tried to decrypt a symmetric gpg encryption with Java
using Java Cryptography Architecture included in the JDK?
echo hello | gpg -c --cipher-algo 3DES -a --passphrase "my pass" |
java MyDeCrypt --cipher-algo 3DES --passphrase "my pass"
should result in hello
This should be possible, I googled for a sample, but there seems to be none.
Thanks,
Juergen
http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html
echo hello | gpg -c --cipher-algo 3DES -a --passphrase "my pass"
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.5 (GNU/Linux)
jA0EAgMC3WQttb9CgbRgyRyF8HBgQEDfx1FR9w5/E6lDFicD9IRm+jbSDBn9
=Uj3h
-----END PGP MESSAGE-----
More information about the Gnupg-users
mailing list