Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rindjael with PHP 7 - SSL encrypt

Featured Replies

I think my correction is correct, but I don't have time to do check and to do better ... (I use TB 1.0.5 & PHP 7.1.9)

You have to select "Use Rijndael with the openssl extension" in the BO > Advanced Parameters > Performance > Encryption

in file : classes\Rijndael.php , line 68 ``` public function encrypt($plaintext) { if (mbstrlen($this->key, '8bit') !== 32) { return false; }

    if (function_exists('openssl_encrypt')) {
        // Correction of a BUG !!
        $ivsize = openssl_cipher_iv_length('aes-256-cbc');

        try {
            $iv = random_bytes($ivsize);
        } catch (Exception $e) {
            if (function_exists('openssl_random_pseudo_bytes(')) {
                $iv = openssl_random_pseudo_bytes($ivsize);
            } else {
                throw new Exception('No secure random number generator found on your system.');
            }
        }
        //**************************************//

        $ciphertext = openssl_encrypt(
            $plaintext,
            'aes-256-cbc',
            $this->_key,
            OPENSSL_RAW_DATA,
            $iv
        );
    } else {

```

  • Author

else it doesn't work if you activate "Parameters > Performances > Encryption : Use Rijndael with the openssl extension" and of course in "Debug Mode" ;-)

  • Author

(not sure : maybe with php 5.6 , I actually use php 7)

This is why I posted this bug correction for reviewing ... Tell me all !

(indeed it works for me)

  • Author

Sorry, I forgot it (not in my habits) ... I added it in the 1st post ;)

And of course, you have to select "Use Rijndael with the openssl extension" in the BO > Advanced Parameters > Performance > Encryption

I use PHP 5.6.25 & PHP 7.1.9

  • 1 month later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.