MBS Xojo Plugins, version 23.3pr5

New in this prerelease of the 23.3 plugins: Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

Decrypt data from PHP in Xojo

Recently we discussed how to encrypt something in PHP and then decrypt in Xojo. Check out the CipherMBS class in our plugin, which corresponds to openssl_encrypt/openssl_decrypt functions in PHP.

Here is a sample script in PHP to generate a random initial vector and a random key. Then encrypt some text with openssl using blowfish algorithm and CBC as block mode:

$cipher = 'bf-cbc';
$iv_size = openssl_cipher_iv_length($cipher);
$key_size = 20;
$iv = random_bytes($iv_size);
$key = random_bytes($key_size);

$encrypted = openssl_encrypt('Hello World. Just a test here!', $cipher, $key, OPENSSL_RAW_DATA, $iv);

print "iv: ".base64_encode($iv)."\n";
print "key: ".base64_encode($key)."\n";
print "encrypted: ".base64_encode($encrypted)."\n";

For such an encryption, you need to replicate on both sides the same settings:

  • Identical key data. May need you to hash key first.
  • Identical initial vector
  • Identical setting for padding of data to match required block size.
  • Identical handling for keys with too small size. e.g. fill up with zero bytes.

You can run the PHP script above and copy the values into the Xojo code below:

Var Cipher As CipherMBS = CipherMBS.bf_cbc Call Cipher.EncryptInit(DecodeBase64("79aMfVRxPw0="), DecodeBase64("2peenIoTK1k=")) Var Decrypted As MemoryBlock = Cipher.ProcessMemory(DecodeBase64("JBvDgbeC6vECJGiRnh27GQ==")) + Cipher.FinalizeAsMemory() Print Decrypted

If everything works fine, the result in the unencrypted text as in the PHP script.


Expedition to Andernach

Our monkey made a trip to Andernach to show you how nice it looks there and what to expect when you visit our MBS Xojo Conference.

Let's start in the Roman park area behind the hotel:

(more)

MBS Xojo Plugins, version 23.3pr4

New in this prerelease of the 23.3 plugins:
  • Updated DynaPDF to version 4.0.74.217.
  • Fixed a bug in CipherMBS handling of long keys (broken in pr2).
  • Added ZeroPaddingKey property to CipherMBS class.
  • Split PDFKit classes into new MBS Xojo PDFKit Plugin, so we can enable iOS support for them.
  • Added PDFThumbnailViewIOSControlMBS and PDFViewIOSControlMBS controls.
  • Fixed WindowsPreviewHandlerMBS for older Xojo versions, broken in pr2.
  • Fixed Yield property in ArchiveMBS class to be settable.
  • Enabled legacy algorithms for openssl on Windows, so blowfish is available in CipherMBS class.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

Hotel for Xojo conference

Time to let you guys know where our MBS Xojo Conference in Andernach will take place. Our monkey found it near the Rhine:

The Einstein Hotel Am Römerpark in Andernach at the Rhine is a fairly new hotel. There used to be a malt factory in Andernach, but that got demolished a few years ago. Then the archeologists took over, started to dig and found plenty of roman ruins, which are now preserved and shown in the park area behind the hotel. On the Rhine site the hotel was built and opened in 2020.

(more)

MBS Xojo Plugins, version 23.3pr3

New in this prerelease of the 23.3 plugins:
  • Added 49 new ciphers for CipherMBS class.
  • Added Control function for CipherMBS class for AES GCM tags.
  • Added eight more digest methods to DigestMBS class.
  • Enabled legacy algorithms for openssl, so blowfish is available in CipherMBS class.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

Notarize script

Let me show you a sample script on how to easily notarize a disk image automatically. The script is pretty generic, so you only change the path to go to on the beginning and the pattern to find the dmg file. We use ls command here to find it independent of the version number. And as you see, we pack our archives into a temp folder:

(more)

MBS Xojo Plugins for Android not yet

Since Xojo Inc. announced that the Android target will be included for 2023r2 release, I got a few people asking whether our plugins will be ported. If you like to try Android soon, please join the Testers group.

Well, there is not yet a plugin SDK for Android. We expect there will be one, but first Xojo Inc. has to figure out how to make the plugins works on Android. This includes preparing how to do C++ library compilation, how to bridge that to their Kotlin app and have calls get through including exception handling.

(more)

LibSSH2 update

The new LibSSH2 1.11 update brings a few interesting changes.

Adds support for encrypt-then-mac (ETM) MACs
Adds support for AES-GCM crypto protocols
Adds support for sk-ecdsa-sha2-nistp256 and sk-ssh-ed25519 keys
Adds support for RSA certificate authentication
Adds RSA-SHA2 key upgrading to OpenSSL

The most importing is that newer SSH servers use newer SHA2 hashes and newer encryption algorithms. Since more and more servers disallow older encryption standards and require the newer ones, you may want to update to the new plugins soon to prevent connection problems.

Included in MBS FileMaker Plugin 13.3 and MBS Xojo Plugins 23.3, currently in pre-release testing.

MBS Xojo Plugins, version 23.3pr2

New in this prerelease of the 23.3 plugins: Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

PDF Viewer control for Windows

For next plugin version we add WinPreviewControlMBS control to our plugins. This one allows you to use the built-in PDF viewer in Windows 10 to show a PDF document.

We leverage what we had before with WindowsPreviewHandlerMBS class, but made it a Xojo control (and a desktop control), so you can just drop it on a window and then have a quick PDF viewer control.

The control includes a scrollbar to scroll down over the pages. There is also a toolbar to move to previous or next page, a field to enter a page number to go to. You can zoom to see whole page or zoom in. There is a contextual menu with commands like going to first and last page, and rotate the page to the left or right.

Since the preview handlers on Windows can also be used to preview RTF, contacts, fonts and mail files, we include multiple examples. You may even find more handlers installed by special software to preview other file types.

Please try and let us know what you think.


Adding QuickLook preview for iOS to Xojo

For 23.3 plugins, we add QLPreviewControllerMBS class for iOS projects in Xojo to preview various file types full screen. If your iOS app needs to show some downloaded file or a PDF file received/generated, you can just preview it.

Since we can enable markup features, you can even annotate and edit PDF documents. The user would get the usual tools and then can save the new PDF to a temporary file. Your application receives an event and then you can save it to where you need it, e.g. into a database.

A QLPreviewController can display previews for many common file types, including the following:

  • iWork documents
  • Microsoft Office documents
  • Rich text format, or RTF, documents
  • PDF files
  • Images
  • Text files with a uniform type identifier that conforms to the public.text type. To learn more, see Uniform type identifiers.
  • Comma-separated values, or CSV, files
  • 3D models in the USDZ format with both standalone and AR views for viewing the model

If you like to use this, please add a property to the screen to hold the panel reference. e.g. "panel as QLPreviewControllerMBS".

Then in the code to show a PDF file, just call a bit code like this:

panel = New QLPreviewControllerMBS
panel.AddItem PDFFile
panel.Present

And it shows the panel full screen. You can add multiple files if needed and use a subclass of QLPreviewControllerMBS to implement events to allow editing or get notified for dismissal of the panel.

Please try with next prerelease and let us know if you have questions.



EPS support deprecated in macOS Sonoma

It looks like Apple removes EPS support for macOS Sonoma, so we deprecate the functionality around that in our plugins. Currently the features still works and can be used, but once you upgrade, the MBS functions will return an error or raise an exception.

For FileMaker:
For Xojo:
Not sure about the reason. From usage statistics showing that nobody uses it, to expired licenses with Adobe or the retirement of the relevant staff, all is possible.

If you need EPS conversion, you may check command line tools like Ghostscript to do the same.

Our plugins will carry on the functions until we move to newer Xcode and newer macOS next year, where we may have to remove them.

Xojo's tenth birthday

Xojo turns ten years old today.

On 4th June 2013, Xojo Inc. announced the name change from Real Studio to Xojo, the new IDE and the new license model.

Originally Xojo started over 25 years ago as CrossBasic, got rebranded as REALbasic and released in 1998 to the public. In 2010 the name was changed to Real Studio before in 2013 the company and its product were renamed to Xojo. See Wikipedia for details.

Congratulations to the team and looking forward to the next 20 years!

See you at the next conference! (more)

MBS Xojo Plugins, version 23.3pr1

New in this prerelease of the 23.3 plugins:
  • Added ConvertImage method for WindowsPDFDocumentMBS class.
  • Added Describe method to GMImageMBS class.
  • Added evaluate method to XMLDocumentMBS class to do XPath queries.
  • Added FilterObjectArray method in JSONMBS class.
  • Added RegisterRGBAImage and MarkerDefineRGBAImage methods to ScintillaControlMBS class.
  • Added tag property to CURLSMultiMBS and CURLSMBS classes.
  • Added XMLXPathResultMBS class.
  • Fixed CURLSMultiMBS class to set AutoPerform to true for shared instance.
  • Improved ScintillaControlMBS to better recognize xojo comments.
  • Our plugin now requires glibc 2.25 for openssl on Linux (from 2017)
  • Removed PHP classes.
  • Updated CURL library to version 8.1.2.
  • Updated LibSSH to version 1.11.0.
  • Updated MongoDB-c library to version 1.23.4.
  • Updated openssl library to version 3.1.1.
  • Updated RabbitMQ-c library to version 0.13.
  • Updated SQLite to version 3.42.0.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.
The biggest plugin in space...

Archives

Nov 2024
Oct 2024
Sep 2024
Aug 2024
Jul 2024
Jun 2024
May 2024
Apr 2024
Mar 2024
Feb 2024
Jan 2024
Dec 2023
Nov 2023
Oct 2023
Sep 2023
Aug 2023
Jul 2023
Jun 2023
May 2023
Apr 2023
Mar 2023
Feb 2023
Jan 2023
Dec 2022
Nov 2022
Oct 2022
Sep 2022
Aug 2022
Jul 2022
Jun 2022
May 2022
Apr 2022
Mar 2022
Feb 2022
Jan 2022
Dec 2021
Nov 2021
Oct 2021
Sep 2021
Aug 2021
Jul 2021
Jun 2021
May 2021
Apr 2021
Mar 2021
Feb 2021
Jan 2021
Dec 2020
Nov 2020
Oct 2020
Sep 2020
Aug 2020
Jul 2020
Jun 2020
May 2020
Apr 2020
Mar 2020
Feb 2020
Jan 2020
Dec 2019
Nov 2019
Oct 2019
Sep 2019
Aug 2019
Jul 2019
Jun 2019
May 2019
Apr 2019
Mar 2019
Feb 2019
Jan 2019
Dec 2018
Nov 2018
Oct 2018
Sep 2018
Aug 2018
Jul 2018
Jun 2018
May 2018
Apr 2018
Mar 2018
Feb 2018
Jan 2018
Dec 2017
Nov 2017
Oct 2017
Sep 2017
Aug 2017
Jul 2017
Jun 2017
May 2017
Apr 2017
Mar 2017
Feb 2017
Jan 2017
Dec 2016
Nov 2016
Oct 2016
Sep 2016
Aug 2016
Jul 2016
Jun 2016
May 2016
Apr 2016
Mar 2016
Feb 2016
Jan 2016
Dec 2015
Nov 2015
Oct 2015
Sep 2015
Aug 2015
Jul 2015
Jun 2015
May 2015
Apr 2015
Mar 2015
Feb 2015
Jan 2015
Dec 2014
Nov 2014
Oct 2014
Sep 2014
Aug 2014
Jul 2014
Jun 2014
May 2014
Apr 2014
Mar 2014
Feb 2014
Jan 2014
Dec 2013
Nov 2013
Oct 2013
Sep 2013
Aug 2013
Jul 2013
Jun 2013
May 2013
Apr 2013
Mar 2013
Feb 2013
Jan 2013
Dec 2012
Nov 2012
Oct 2012
Sep 2012
Aug 2012
Jul 2012
Jun 2012
May 2012
Apr 2012
Mar 2012
Feb 2012
Jan 2012
Dec 2011
Nov 2011
Oct 2011
Sep 2011
Aug 2011
Jul 2011
Jun 2011
May 2011
Apr 2011
Mar 2011
Feb 2011
Jan 2011
Dec 2010
Nov 2010
Oct 2010
Sep 2010
Aug 2010
Jul 2010
Jun 2010
May 2010
Apr 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Nov 2009
Oct 2009
Sep 2009
Aug 2009
Jul 2009
Apr 2009
Mar 2009
Feb 2009
Dec 2008
Nov 2008
Oct 2008
Aug 2008
May 2008
Apr 2008
Mar 2008
Feb 2008