Discussion:
bouncy castle example use the same key to crypt e decrypt?
filippo2
2014-08-11 13:38:44 UTC
Permalink
CreateEncryptedMail.java
<http://bouncy-castle.1462172.n4.nabble.com/file/n4657284/CreateEncryptedMail.java>
ReadEncryptedMail.java
<http://bouncy-castle.1462172.n4.nabble.com/file/n4657284/ReadEncryptedMail.java>

as i see, the 2 example create and read a crypted mail using the same key in
the same keystore, or i am wrong?
it is possible?

thanks



--
View this message in context: http://bouncy-castle.1462172.n4.nabble.com/bouncy-castle-example-use-the-same-key-to-crypt-e-decrypt-tp4657284.html
Sent from the Bouncy Castle - Dev mailing list archive at Nabble.com.
David Hook
2014-08-12 00:55:55 UTC
Permalink
Yes if you pass the same PKCS#12 file. The examples just grab the first
key available.

Regards,

David
Post by filippo2
CreateEncryptedMail.java
<http://bouncy-castle.1462172.n4.nabble.com/file/n4657284/CreateEncryptedMail.java>
ReadEncryptedMail.java
<http://bouncy-castle.1462172.n4.nabble.com/file/n4657284/ReadEncryptedMail.java>
as i see, the 2 example create and read a crypted mail using the same key in
the same keystore, or i am wrong?
it is possible?
thanks
--
View this message in context: http://bouncy-castle.1462172.n4.nabble.com/bouncy-castle-example-use-the-same-key-to-crypt-e-decrypt-tp4657284.html
Sent from the Bouncy Castle - Dev mailing list archive at Nabble.com.
filippo2
2014-08-15 08:36:40 UTC
Permalink
thanks



--
View this message in context: http://bouncy-castle.1462172.n4.nabble.com/bouncy-castle-example-use-the-same-key-to-crypt-e-decrypt-tp4657284p4657300.html
Sent from the Bouncy Castle - Dev mailing list archive at Nabble.com.
Loading...