For base64 encoding/decoding, can base64 and uuencode/uudecode be used exchangeably?











up vote
-4
down vote

favorite












Do both base64 (from coreutils) and uuencode -m and uudecode (from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?










share|improve this question







New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Try man uuencode, which will demonstrate that they're not synonymous.
    – Thomas Dickey
    Nov 21 at 0:47










  • I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
    – Ben
    Nov 21 at 0:52












  • There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
    – Thomas Dickey
    Nov 21 at 1:12










  • "different mappings for base64", for example?
    – Ben
    Nov 21 at 1:27






  • 2




    RFC 3548 and RFC 4648.
    – Thomas Dickey
    Nov 21 at 1:35















up vote
-4
down vote

favorite












Do both base64 (from coreutils) and uuencode -m and uudecode (from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?










share|improve this question







New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Try man uuencode, which will demonstrate that they're not synonymous.
    – Thomas Dickey
    Nov 21 at 0:47










  • I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
    – Ben
    Nov 21 at 0:52












  • There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
    – Thomas Dickey
    Nov 21 at 1:12










  • "different mappings for base64", for example?
    – Ben
    Nov 21 at 1:27






  • 2




    RFC 3548 and RFC 4648.
    – Thomas Dickey
    Nov 21 at 1:35













up vote
-4
down vote

favorite









up vote
-4
down vote

favorite











Do both base64 (from coreutils) and uuencode -m and uudecode (from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?










share|improve this question







New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Do both base64 (from coreutils) and uuencode -m and uudecode (from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?







base64






share|improve this question







New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 21 at 0:08









Ben

2788




2788




New contributor




Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ben is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    Try man uuencode, which will demonstrate that they're not synonymous.
    – Thomas Dickey
    Nov 21 at 0:47










  • I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
    – Ben
    Nov 21 at 0:52












  • There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
    – Thomas Dickey
    Nov 21 at 1:12










  • "different mappings for base64", for example?
    – Ben
    Nov 21 at 1:27






  • 2




    RFC 3548 and RFC 4648.
    – Thomas Dickey
    Nov 21 at 1:35














  • 2




    Try man uuencode, which will demonstrate that they're not synonymous.
    – Thomas Dickey
    Nov 21 at 0:47










  • I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
    – Ben
    Nov 21 at 0:52












  • There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
    – Thomas Dickey
    Nov 21 at 1:12










  • "different mappings for base64", for example?
    – Ben
    Nov 21 at 1:27






  • 2




    RFC 3548 and RFC 4648.
    – Thomas Dickey
    Nov 21 at 1:35








2




2




Try man uuencode, which will demonstrate that they're not synonymous.
– Thomas Dickey
Nov 21 at 0:47




Try man uuencode, which will demonstrate that they're not synonymous.
– Thomas Dickey
Nov 21 at 0:47












I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52






I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52














There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12




There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12












"different mappings for base64", for example?
– Ben
Nov 21 at 1:27




"different mappings for base64", for example?
– Ben
Nov 21 at 1:27




2




2




RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35




RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Except for the header and tail that uuencode adds to its output, yes:



$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====

$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK


But uuencode is specified by posix, base64 no.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: 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
    });


    }
    });






    Ben is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483088%2ffor-base64-encoding-decoding-can-base64-and-uuencode-uudecode-be-used-exchangea%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Except for the header and tail that uuencode adds to its output, yes:



    $ uuencode -m - <<<"Hello World! test"
    begin-base64 644 -
    SGVsbG8gV29ybGQhIHRlc3QK
    ====

    $ base64 <<<"Hello World! test"
    SGVsbG8gV29ybGQhIHRlc3QK


    But uuencode is specified by posix, base64 no.






    share|improve this answer

























      up vote
      1
      down vote













      Except for the header and tail that uuencode adds to its output, yes:



      $ uuencode -m - <<<"Hello World! test"
      begin-base64 644 -
      SGVsbG8gV29ybGQhIHRlc3QK
      ====

      $ base64 <<<"Hello World! test"
      SGVsbG8gV29ybGQhIHRlc3QK


      But uuencode is specified by posix, base64 no.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        Except for the header and tail that uuencode adds to its output, yes:



        $ uuencode -m - <<<"Hello World! test"
        begin-base64 644 -
        SGVsbG8gV29ybGQhIHRlc3QK
        ====

        $ base64 <<<"Hello World! test"
        SGVsbG8gV29ybGQhIHRlc3QK


        But uuencode is specified by posix, base64 no.






        share|improve this answer












        Except for the header and tail that uuencode adds to its output, yes:



        $ uuencode -m - <<<"Hello World! test"
        begin-base64 644 -
        SGVsbG8gV29ybGQhIHRlc3QK
        ====

        $ base64 <<<"Hello World! test"
        SGVsbG8gV29ybGQhIHRlc3QK


        But uuencode is specified by posix, base64 no.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 21 at 4:42









        Isaac

        9,70311445




        9,70311445






















            Ben is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Ben is a new contributor. Be nice, and check out our Code of Conduct.













            Ben is a new contributor. Be nice, and check out our Code of Conduct.












            Ben is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483088%2ffor-base64-encoding-decoding-can-base64-and-uuencode-uudecode-be-used-exchangea%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

            Morgemoulin

            Scott Moir

            Souastre