Discussion:
Question about bouncy castle encryption standard
Fino Indrasaputra
2005-07-27 11:53:53 UTC
Permalink
Hello,

I need to ask a question regarding bouncy castle API encryption standard. Is
the encryption algorithms contained in bouncy castle API are international
standards or follow some standard? Can I, for example, encrypt some text
using the Java bouncy castle API and then decrypt it using another non-Java
program?

I ask this because I once tried to make a 3DES encryption using the API and
decrypt it using a program made using Delphi and it just wouldn't work. The
encryptions seemed to be different between both of the programs.
Can anyone give explanation?

Thanks in advance
Andrew Paterson
2005-08-01 11:14:23 UTC
Permalink
Is the encryption algorithms contained in bouncy castle API
are international standards or follow some standard? Can I,
for example, encrypt some text using the Java bouncy castle
API and then decrypt it using another non-Java program?
Yes and yes. For example, I am using the OpenPGP classes and am able to
encrypt with BouncyCastle and decrypt with a program that I have which
is written in C. (It also works the other way as well.)
I ask this because I once tried to make a 3DES encryption
using the API and decrypt it using a program made using
Delphi and it just wouldn't work. The encryptions seemed
to be different between both of the programs.
Can anyone give explanation?
Triple-DES (3DES) is difficult because there are several different
versions of it: two-key and three-key are just two variants and there
are also variations in the construction of the SP boxes. Perhaps you
could try another algorithm that does not have such variations (e.g.
CAST5).

HTH

Andrew
All opinions are completely my own - after all, who else would want to
take credit for them?

Loading...