Skip to main content

Posts

Showing posts with the label delphi

Issues submitting firemonkey app to app store

I have tried dozens of configuration settings trying to get this to work, but still to no avail... When I am trying to submit to the app store, the application loader is reporting the following error iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv7. My understanding is that fpc 2.4 can only generate armv6 code anyway. I have tried setting all build settings to only reference armv6, installed the previous version of XCode 3.2.6 and linked with the iOS SDK 4.3, hoping that this will address any references to armv7, but still no joy. According to the XE2 Update 4 release notes, fpc 2.6 supports armv7, but despite the release notes having been available for weeks, there is no sign of the update! Has anyone successfully uploaded an app using current tools (it surely has to be possible), and if so, could you please share your secret! Thank you

Delphi DEC library (Rijndael) encryption

I am trying to use the DEC 3.0 library ( Delphi Encryption Compedium Part I ) to encrypt data in Delphi 7 and send it to a PHP script through POST, where I am decrypting it with mcrypt (RIJNDAEL_256, ECB mode). Delphi part: uses Windows, DECUtil, Cipher, Cipher1; function EncryptMsgData(MsgData, Key: string): string; var RCipher: TCipher_Rijndael; begin RCipher:= TCipher_Rijndael.Create(KeyStr, nil); RCipher.Mode:= cmECB; Result:= RCipher.CodeString(MsgData, paEncode, fmtMIME64); RCipher.Free; end; PHP part: function decryptMsgContent($msgContent, $sKey) { return mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $sKey, base64_decode($msgContent), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)); } The problem is that the decryption from PHP doesn't work and the output is gibberish, differing from the actual data. Of course, Delphi Key and PHP $Key is the same 24 characters string. Now I know DEC 3.0 is old and