EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Delphi Firemonkey ios and Android rijndael encrypt

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#36905
Posted: 06/07/2016 08:22:47
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

Hi,
I am looking for a crypto library that supports a rijndael cipher with this feature:

- set the "initialization vector" manually
- set the key
- Encrypt cipher mode CBC
- Block size 128 bit (16 byte)
- Key size 256 Bit (32 byte)
IMPORTANT
- works with Firemonkey iOS 32/64 and Android


I used DCPcrypt library but not works with ios 64bit .. generates a access violation.

Can you help me ?

thanks
antonello
#36906
Posted: 06/07/2016 08:37:59
by Eugene Mayevski (EldoS Corp.)

NG edition of SecureBlackbox works on iOS and Android (including 64-bit iOS). NG edition is only for mobile devices. If you need to use the code on desktop as well, you need VCL edition (this is the historical name, it works in Firemonkey applications for Windows and MacOS as well).


Sincerely yours
Eugene Mayevski
#36907
Posted: 06/07/2016 08:42:22
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

thanks, thare are some example to use the library ?
#36908
Posted: 06/07/2016 08:51:49
by Eugene Mayevski (EldoS Corp.)

Only for VCL. We didn't implement samples specifically for NG edition, because it's for mobiles, and one does development on desktop, so VCL samples are easier to deal with (and NG edition is mostly used as complementary to VCL).


Sincerely yours
Eugene Mayevski
#36909
Posted: 06/07/2016 12:52:03
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

Hello,
I have downloaded .vcl and .NG version ... Installed and tried SymmetricEncryption demo.

works fine in VCL demo ...

I recreated same project in Firemonkey project and win32/64 works fine.

also OSX works fine!!!

I configured IOSsimulator with your instructions, but when the app starts, I see the firemonkey logo and the app closes immediatly.

I tried with Android, same problem.

why ? where I wrong ?

Antonello
#36910
Posted: 06/07/2016 13:02:54
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

update,

I used a wrong trial license key.

Now works on Android and IOSSimulator ... but the ciphertext is different from desktop and mobile.

why?
#36911
Posted: 06/07/2016 13:16:05
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

other issue, I am trying to compile with ios32/64 device but I receive this error:

[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

regards
Antonello
#36912
Posted: 06/07/2016 14:50:41
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

Hello,

have you some suggestions about my issue ?

kind regards
Antonello
#36913
Posted: 06/07/2016 15:04:45
by Eugene Mayevski (EldoS Corp.)

Quote
Antonello Carlomagno wrote:
Now works on Android and IOSSimulator ... but the ciphertext is different from desktop and mobile.


What combinations are different - is Android different from desktop? Is it the same for mobile?

I guess there's something related to strings that you are not taking into account. But to say for sure, we'd need to see and run your code. This service is possible for users with active Premium support.

Quote
Antonello Carlomagno wrote:
other issue, I am trying to compile with ios32/64 device but I receive this error:

[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)


We didn't create the compiler, so we can hardly say anything about this. Try contacting Embarcadero or using their forums. They (Embarcadero) should write error descriptions in a human-readable manner.


Sincerely yours
Eugene Mayevski
#36918
Posted: 06/08/2016 05:19:59
by Antonello Carlomagno (Standard support level)
Joined: 05/07/2013
Posts: 22

Hello,

Quote
But to say for sure, we'd need to see and run your code. This service is possible for users with active Premium support.


yes ok, but I have to convince my customer to buy your license, but if he does not show you that works on both desktop and mobile, I have no hope.

I resolved the problem about the different ciphertext.
It was the initialization vector.

but I need to test on iOS device ...

The compiler not found the library that I add on SDK manager.

[DCC Error] E2597 ld: file not found: libpthread.dylib

I followed your instructions, iossimulator works fine and found the lib ...
ios not found the lib!

why ?

Antonello
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.

Reply

Statistics

Topic viewed 2558 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!