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

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Moving longtable left of margin

How much cash can I safely carry into the USA and avoid civil forfeiture?

Which model to chose based on learning curve

Which big number is bigger?

Why must Chinese maps be obfuscated?

How can I practically buy stocks?

Which term is being referred to with "reflected-sound-of-underground-spirits"?

Was there a Viking Exchange as well as a Columbian one?

Is there a grandfather paradox in Endgame?

Zonal Statistics is returning null values in ArcGIS Desktop?

Thesis on avalanche prediction using One Class SVM

Authenticating an internal API with Flask

Is there really no use for MD5 anymore?

How do I produce this Greek letter koppa: Ϟ in pdfLaTeX?

How to copy a file or multiple to the directory I previously was?

A ​Note ​on ​N!

How to fry ground beef so it is well-browned

Multiple options vs single option UI

Who is the character that appears at the end of Endgame?

What happens to the Infinity Stones?

Negative Resistance

Can I enter Heaven by simply doing good deeds while on Earth?

Is there an implicit type promotion in "float = float - float"?



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 1 hour 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

                    منجزی محتویات تیره‌های طایفه منجزی[ویرایش] مشاهیر طایفه منجزی[ویرایش] محل سکونت[ویرایش] پانویس[ویرایش] منابع[ویرایش] منوی ناوبری«نمودار اجتماعی طوایف بختیاری»«BakhtyārBAḴTĪĀRĪ TRIBE»«اسامی طوایف و شعب ایل بختیاری»ووگسترش آن

                    بیوانفورماتیک محتویات تاریخچه[ویرایش] اهداف[ویرایش] کاربردهای بیوانفورماتیک[ویرایش] زمینه‌های مهم بیوانفورماتیک[ویرایش] موضوعات سیستم نرم‌افزاری بیوانفورماتیک[ویرایش] مراکز و ابزار[ویرایش] جستارهای وابسته[ویرایش] پیوند به بیرون[ویرایش] منابع[ویرایش] منوی ناوبریووانجمن بیوانفورماتیک ایرانمرکز بیوانفورماتیک دانشگاه تهرانمرکز ملی تحقیقات بیوانفورماتیکانستیتو بیو-آی‌تیبانک داده‌های دی ان ایمرکز ملی اطلاعات بیوتکنولوژیانستیتوی بیوانفورماتیک اروپاپورتال بیوانفورماتیک ایران«فرهنگ واژه‌های مصوب فرهنگستان ـ دفتر هشتم، بخش لاتین»وووو4611085-900870420ووو