Encrypted String length in c#

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?










share|improve this question

























    up vote
    2
    down vote

    favorite












    I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?










      share|improve this question













      I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?







      encryption






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 3 at 10:19









      user61526

      111




      111




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).



          That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.






          share|improve this answer






















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "281"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f62002%2fencrypted-string-length-in-c%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote













            Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).



            That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.






            share|improve this answer


























              up vote
              4
              down vote













              Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).



              That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.






              share|improve this answer
























                up vote
                4
                down vote










                up vote
                4
                down vote









                Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).



                That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.






                share|improve this answer














                Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).



                That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 3 at 12:29

























                answered Sep 3 at 10:37









                fgrieu

                72.8k6149310




                72.8k6149310



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f62002%2fencrypted-string-length-in-c%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    How to combine Bézier curves to a surface?

                    Mutual Information Always Non-negative

                    Why am i infinitely getting the same tweet with the Twitter Search API?