On Sat, Feb 13, 2010 at 10:15 AM, Bryan Stevenson <
[email protected]> wrote:

> The code is below (apoogies for the length), but the questions is simply
> whether the encrypt() and decrypt() functions are the same in Adobe CF
> and OpenBD?
>
>
Probably splitting hairs but yes, it functions the same. The result of the
encryption operation, however, depends entirely on the algorithm you use.

If you don't specify an algorithm the default is CFMX_COMPAT for Adobe CF,
and this type of encryption is not supported by OpenBD. The default in
OpenBD is BD_DEFAULT, which will yield different results than CFMX_COMPAT.
Note that CFMX_COMPAT is not very secure at all, so if you're concerned
about encrypting for security you'll want to use something else anyway.

OpenBD supports AES, Blowfish, DES, and DESEDE ("triple DES") natively, but
you can add additional algorithms by leveraging BouncyCastle (
http://www.bouncycastle.org/) or any third-party Java encryption library.
More info on the wiki:
http://bit.ly/agmohy

I'll update that with a bit more info to more clearly address this question.

So the key to getting the encrypt() function to yield the same result
between OpenBD and Adobe CF is to *not* use the default algorithm on either
engine, but to use something that's common between them, which AES,
Blowfish, DES, and DESEDE all are.

Note also that the Enterprise version of Adobe CF supports encryption
algorithms that are not available on Adobe CF Standard, but there is a lot
of overlap if you add BouncyCastle to OpenBD. You can see what BouncyCastle
supports here:
http://www.bouncycastle.org/specifications.html

Hope that helps.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to