Has blowfish encryption changed from railo to lucee?

Hi All

Im using the following method to encrypt and decrypt data:

<cfset sVars.cData = encrypt(arguments.data, arguments.key, “BLOWFISH”) />

<cfset sVars.sData = deserializeJson(decrypt(sVars.cData. arguments.key,
“BLOWFISH”)) />

In Railo previously this worked but since switching to lucee I get an error
message
can’t [7] decode the input string [1234567], because the input string has
an invalid length

I thought padding was automatically managed, this happens with pre-existing
data (i.e. from railo) and data created now, for lucee I now need to use a
key that is exactly 8 bytes i.e. 1234567 wont work it needs to be 12345678

GX

i could reprouce that problem, can you please raise a ticket for it, we
will look into it. that was the code i used to test:


<cfset sVars.cData = encrypt(data, key, “BLOWFISH”) />

<cfset sVars.sData = decrypt(sVars.cData, key, “BLOWFISH”) />
<cfset dump(sVars)>

MichaOn Thu, Apr 2, 2015 at 6:55 PM, <@mailme.gx> wrote:

Hi All

Im using the following method to encrypt and decrypt data:

<cfset sVars.cData = encrypt(arguments.data, arguments.key, “BLOWFISH”) />

<cfset sVars.sData = deserializeJson(decrypt(sVars.cData. arguments.key,
“BLOWFISH”)) />

In Railo previously this worked but since switching to lucee I get an
error message
can’t [7] decode the input string [1234567], because the input string has
an invalid length

I thought padding was automatically managed, this happens with
pre-existing data (i.e. from railo) and data created now, for lucee I now
need to use a key that is exactly 8 bytes i.e. 1234567 wont work it needs
to be 12345678

GX


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/15da8f47-725b-4a6d-82af-40f8cdcb0aae%40googlegroups.com
https://groups.google.com/d/msgid/lucee/15da8f47-725b-4a6d-82af-40f8cdcb0aae%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.