You are forgetting about encodings
The encryption has been validated against official test vectors, which
means if the Java Encryption is also validated then they are compatible.
However, this goes for binary data. If using Text then you need to deal
with the Encodings.
For Example a Password "test" originating from UTF16 serialized to raw
binary will not be "test", it will be 8 characters.
So in order to get anything to talk to each other then you need to make
sure you are working with same data on both ends (that means same
encodings and exactly the same binary vectors). This goes for Encrypted
materials, IV vector, Password)
Björn
gary hayenga wrote:
We need to implement 128 bit encryption for certain fields in our
database. My first thought is since we already license the Einhugur
plugins to use his encryption classes.
The problem is that we also need to be able to read this field from a
separate Java program. I thought that would be no problem, Einhugur's
plugin has BlowfishECB and BlowfishCBC and I could find open source
Java Blowfish implementations. Which I did. Unfortunately Einhugur's
plugin and the BlowfishJ Java classes do not give me the same
encrypted text with the same key and original text. I'm using 16
zero's for both the key and the original text in my test.
They both can decrypt their own encoded text without any difficulty.
Does anyone know of any way to get the same 128 bit encryption with
both RB and Java?
Any help would be appreciated.
gary hayenga
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>