Blowfish different result Win than Mac

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Blowfish different result Win than Mac

Post by JosepM » Sat Dec 24, 2011 1:20 pm

Hi,

I'm using the Blowfish libraries to crypt some data and I found that I get differents values on Mac form Win.

Using on Windows
Text: LiveCode
Key: rules
CipherText: EAAF510FB2141030

On Mac
Text: LiveCode
Key: rules
CipherText: D0DD4167667F28A2

And if you try a online example at http://webnet77.com/cgi-bin/helpers/blowfish.pl you get other result... :(
Any idea why?

Salut,
Josep M

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Blowfish different result Win than Mac

Post by Klaus » Tue Dec 27, 2011 5:33 pm

Hi Joseph,

key question is: can you DECRYPT the same data on Mac and Win correctly?


Best

Klaus

JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Re: Blowfish different result Win than Mac

Post by JosepM » Tue Dec 27, 2011 5:35 pm

No :)

Well, correctly yes, but the result is different...

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Blowfish different result Win than Mac

Post by Klaus » Tue Dec 27, 2011 5:56 pm

Ah, Oh!? :D

Sounds like a bug to me!

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: Blowfish different result Win than Mac

Post by keithglong » Tue Dec 27, 2011 9:11 pm

You might want to try the "Blowfish and UTF-8 RunRev libraries" example stack found on RevOnline...

Cheers,

- Boo

Post Reply