SodiumChachaIetf::decrypt() must be of the type string, booleanMagento 2.1.1 upgrade issueProduct showing “out of stock” and php error while saving again. magento 2Error at order shippinggetList() must be an instance of MagentoFrameworkApiSearchCriteriaInterfacesearch not working - Fatal error - magento 2Fatal error: Uncaught TypeError: Argument 1 passedMagento 2.3 Web Setup Wizard Fatal Error compact()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento error when going to forgotten password linkUncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the type string, null given

LT Spice Voltage Output

How could a planet have most of its water in the atmosphere?

What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?

Can PCs use nonmagical armor and weapons looted from monsters?

Why is Arya visibly scared in the library in S8E3?

Why are notes ordered like they are on a piano?

How to reply this mail from potential PhD professor?

Accidentally deleted the "/usr/share" folder

Was Unix ever a single-user OS?

If 1. e4 c6 is considered as a sound defense for black, why is 1. c3 so rare?

Can fracking help reduce CO2?

Is balancing necessary on a full-wheel change?

I caught several of my students plagiarizing. Could it be my fault as a teacher?

Junior developer struggles: how to communicate with management?

Why debootstrap can only run as root?

You look catfish vs You look like a catfish?

How to assert on pagereference where the endpoint of pagereference is predefined

The barbers paradox first order logic formalization

Why do computer-science majors learn calculus?

Does hiding behind 5-ft-wide cover give full cover?

Topological Spaces homeomorphic

If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?

Can I use 1000v rectifier diodes instead of 600v rectifier diodes?

Feels like I am getting dragged into office politics



SodiumChachaIetf::decrypt() must be of the type string, boolean


Magento 2.1.1 upgrade issueProduct showing “out of stock” and php error while saving again. magento 2Error at order shippinggetList() must be an instance of MagentoFrameworkApiSearchCriteriaInterfacesearch not working - Fatal error - magento 2Fatal error: Uncaught TypeError: Argument 1 passedMagento 2.3 Web Setup Wizard Fatal Error compact()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento error when going to forgotten password linkUncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the type string, null given






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.



error is :




Fatal error: Uncaught TypeError: Return value of
MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')



#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')



#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))



#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in

/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68











share|improve this question






























    4















    I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.



    error is :




    Fatal error: Uncaught TypeError: Return value of
    MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
    be of the type string, boolean returned in
    public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
    Stack trace: #0
    public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
    MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')



    #1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
    MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')



    #2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
    DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))



    #3 public_html/vendor/dotmailer/dotmailer-magento2-extens
    in

    /public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68











    share|improve this question


























      4












      4








      4


      1






      I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.



      error is :




      Fatal error: Uncaught TypeError: Return value of
      MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
      be of the type string, boolean returned in
      public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
      Stack trace: #0
      public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
      MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')



      #1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
      MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')



      #2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
      DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))



      #3 public_html/vendor/dotmailer/dotmailer-magento2-extens
      in

      /public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68











      share|improve this question
















      I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.



      error is :




      Fatal error: Uncaught TypeError: Return value of
      MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
      be of the type string, boolean returned in
      public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
      Stack trace: #0
      public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
      MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')



      #1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
      MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')



      #2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
      DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))



      #3 public_html/vendor/dotmailer/dotmailer-magento2-extens
      in

      /public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68








      magento2 magento2.3 register






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 12:26









      Rakesh Donga

      2,716317




      2,716317










      asked Feb 1 at 5:07









      Krunal PandyaKrunal Pandya

      516




      516




















          3 Answers
          3






          active

          oldest

          votes


















          7














          Go to this file:




          vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




          And Update Below Code:



          $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
          $payload,
          $nonce,
          $nonce,
          $this->key
          );
          if ($plainText == false)

          return "";

          return $plainText;





          share|improve this answer




















          • 1





            Do not edit core files.

            – dudzio
            Feb 14 at 11:32











          • Above solution from magento issue discussion github.com/magento/magento2/issues/19590

            – Barry
            Mar 24 at 19:37


















          4














          Looks like you are using the wrong crypt key.



          You should keep the key from your previews configuration:



          app/etc/local.xml [Magento 1.x]



          <?xml version="1.0"?>
          <config>
          <global>
          <install>
          <date>date</date>
          </install>
          <crypt>
          <key>123456_same_old_key_7890</key>
          </crypt>
          [...]


          And replace the new one in the new project:



          app/etc/env.php [Magento 2.x]



          <?php
          [...],
          'crypt' => [
          'key' => '123456_same_old_key_7890'
          ],
          [...]


          Source: https://github.com/magento/magento2/issues/19590






          share|improve this answer


















          • 1





            Thank you, this did the trick for me!

            – Doug McLean
            Apr 4 at 13:23


















          0














          Go to this file:




          vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




          And update below code:



           public function decrypt(string $data): string

          $nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
          $payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');

          $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
          $payload,
          $nonce,
          $nonce,
          $this->key
          );

          return (string) $plainText;



          Just change the function return type:
          From



          return $plainText


          to



          return (string) $plainText





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260080%2fsodiumchachaietfdecrypt-must-be-of-the-type-string-boolean%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            Go to this file:




            vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




            And Update Below Code:



            $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
            $payload,
            $nonce,
            $nonce,
            $this->key
            );
            if ($plainText == false)

            return "";

            return $plainText;





            share|improve this answer




















            • 1





              Do not edit core files.

              – dudzio
              Feb 14 at 11:32











            • Above solution from magento issue discussion github.com/magento/magento2/issues/19590

              – Barry
              Mar 24 at 19:37















            7














            Go to this file:




            vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




            And Update Below Code:



            $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
            $payload,
            $nonce,
            $nonce,
            $this->key
            );
            if ($plainText == false)

            return "";

            return $plainText;





            share|improve this answer




















            • 1





              Do not edit core files.

              – dudzio
              Feb 14 at 11:32











            • Above solution from magento issue discussion github.com/magento/magento2/issues/19590

              – Barry
              Mar 24 at 19:37













            7












            7








            7







            Go to this file:




            vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




            And Update Below Code:



            $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
            $payload,
            $nonce,
            $nonce,
            $this->key
            );
            if ($plainText == false)

            return "";

            return $plainText;





            share|improve this answer















            Go to this file:




            vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




            And Update Below Code:



            $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
            $payload,
            $nonce,
            $nonce,
            $this->key
            );
            if ($plainText == false)

            return "";

            return $plainText;






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 12 hours ago

























            answered Feb 1 at 17:06









            Rakesh DongaRakesh Donga

            2,716317




            2,716317







            • 1





              Do not edit core files.

              – dudzio
              Feb 14 at 11:32











            • Above solution from magento issue discussion github.com/magento/magento2/issues/19590

              – Barry
              Mar 24 at 19:37












            • 1





              Do not edit core files.

              – dudzio
              Feb 14 at 11:32











            • Above solution from magento issue discussion github.com/magento/magento2/issues/19590

              – Barry
              Mar 24 at 19:37







            1




            1





            Do not edit core files.

            – dudzio
            Feb 14 at 11:32





            Do not edit core files.

            – dudzio
            Feb 14 at 11:32













            Above solution from magento issue discussion github.com/magento/magento2/issues/19590

            – Barry
            Mar 24 at 19:37





            Above solution from magento issue discussion github.com/magento/magento2/issues/19590

            – Barry
            Mar 24 at 19:37













            4














            Looks like you are using the wrong crypt key.



            You should keep the key from your previews configuration:



            app/etc/local.xml [Magento 1.x]



            <?xml version="1.0"?>
            <config>
            <global>
            <install>
            <date>date</date>
            </install>
            <crypt>
            <key>123456_same_old_key_7890</key>
            </crypt>
            [...]


            And replace the new one in the new project:



            app/etc/env.php [Magento 2.x]



            <?php
            [...],
            'crypt' => [
            'key' => '123456_same_old_key_7890'
            ],
            [...]


            Source: https://github.com/magento/magento2/issues/19590






            share|improve this answer


















            • 1





              Thank you, this did the trick for me!

              – Doug McLean
              Apr 4 at 13:23















            4














            Looks like you are using the wrong crypt key.



            You should keep the key from your previews configuration:



            app/etc/local.xml [Magento 1.x]



            <?xml version="1.0"?>
            <config>
            <global>
            <install>
            <date>date</date>
            </install>
            <crypt>
            <key>123456_same_old_key_7890</key>
            </crypt>
            [...]


            And replace the new one in the new project:



            app/etc/env.php [Magento 2.x]



            <?php
            [...],
            'crypt' => [
            'key' => '123456_same_old_key_7890'
            ],
            [...]


            Source: https://github.com/magento/magento2/issues/19590






            share|improve this answer


















            • 1





              Thank you, this did the trick for me!

              – Doug McLean
              Apr 4 at 13:23













            4












            4








            4







            Looks like you are using the wrong crypt key.



            You should keep the key from your previews configuration:



            app/etc/local.xml [Magento 1.x]



            <?xml version="1.0"?>
            <config>
            <global>
            <install>
            <date>date</date>
            </install>
            <crypt>
            <key>123456_same_old_key_7890</key>
            </crypt>
            [...]


            And replace the new one in the new project:



            app/etc/env.php [Magento 2.x]



            <?php
            [...],
            'crypt' => [
            'key' => '123456_same_old_key_7890'
            ],
            [...]


            Source: https://github.com/magento/magento2/issues/19590






            share|improve this answer













            Looks like you are using the wrong crypt key.



            You should keep the key from your previews configuration:



            app/etc/local.xml [Magento 1.x]



            <?xml version="1.0"?>
            <config>
            <global>
            <install>
            <date>date</date>
            </install>
            <crypt>
            <key>123456_same_old_key_7890</key>
            </crypt>
            [...]


            And replace the new one in the new project:



            app/etc/env.php [Magento 2.x]



            <?php
            [...],
            'crypt' => [
            'key' => '123456_same_old_key_7890'
            ],
            [...]


            Source: https://github.com/magento/magento2/issues/19590







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 18 at 18:26









            Eduan LenineEduan Lenine

            489




            489







            • 1





              Thank you, this did the trick for me!

              – Doug McLean
              Apr 4 at 13:23












            • 1





              Thank you, this did the trick for me!

              – Doug McLean
              Apr 4 at 13:23







            1




            1





            Thank you, this did the trick for me!

            – Doug McLean
            Apr 4 at 13:23





            Thank you, this did the trick for me!

            – Doug McLean
            Apr 4 at 13:23











            0














            Go to this file:




            vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




            And update below code:



             public function decrypt(string $data): string

            $nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
            $payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');

            $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
            $payload,
            $nonce,
            $nonce,
            $this->key
            );

            return (string) $plainText;



            Just change the function return type:
            From



            return $plainText


            to



            return (string) $plainText





            share|improve this answer



























              0














              Go to this file:




              vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




              And update below code:



               public function decrypt(string $data): string

              $nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
              $payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');

              $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
              $payload,
              $nonce,
              $nonce,
              $this->key
              );

              return (string) $plainText;



              Just change the function return type:
              From



              return $plainText


              to



              return (string) $plainText





              share|improve this answer

























                0












                0








                0







                Go to this file:




                vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




                And update below code:



                 public function decrypt(string $data): string

                $nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
                $payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');

                $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
                $payload,
                $nonce,
                $nonce,
                $this->key
                );

                return (string) $plainText;



                Just change the function return type:
                From



                return $plainText


                to



                return (string) $plainText





                share|improve this answer













                Go to this file:




                vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php




                And update below code:



                 public function decrypt(string $data): string

                $nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
                $payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');

                $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
                $payload,
                $nonce,
                $nonce,
                $this->key
                );

                return (string) $plainText;



                Just change the function return type:
                From



                return $plainText


                to



                return (string) $plainText






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 1 at 6:18









                AarpiAarpi

                62




                62



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260080%2fsodiumchachaietfdecrypt-must-be-of-the-type-string-boolean%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?