Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Base32 encoder/decoder
Forum Updated to NodeBB v4.3 + New Features

Base32 encoder/decoder

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 3.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ckvsoft
    wrote on last edited by
    #1

    Hi there.

    I need a Base32 decoder/encoder which works with QT5

    I'm using cryptopp for AES Encoding/Decoding SHA-256 Hashing and other ones.

    There is an Base32 encoder/decoder available but they do not work with
    RFC 4648

    i tested QCA but here i can't load the plugin's

    I'm using QT5 on Ubuntu 15.10 (wily)

    lg Chris

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi base64 mentions RFC 4648. but is 64 so not use u can use it.

      QString base64_encode ( QString string )
      {
          QByteArray ba;
          ba.append ( string );
          return ba.toBase64();
      }
      
      QString base64_decode ( QString string )
      {
          QByteArray ba;
          ba.append ( string );
          return QByteArray::fromBase64 ( ba );
      }
      
      C 1 Reply Last reply
      0
      • mrjjM mrjj

        hi base64 mentions RFC 4648. but is 64 so not use u can use it.

        QString base64_encode ( QString string )
        {
            QByteArray ba;
            ba.append ( string );
            return ba.toBase64();
        }
        
        QString base64_decode ( QString string )
        {
            QByteArray ba;
            ba.append ( string );
            return QByteArray::fromBase64 ( ba );
        }
        
        C Offline
        C Offline
        ckvsoft
        wrote on last edited by
        #3

        @mrjj

        Thx

        But i need an Base32 Decoder ;)

        l Chris

        mrjjM 1 Reply Last reply
        0
        • C ckvsoft

          @mrjj

          Thx

          But i need an Base32 Decoder ;)

          l Chris

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @ckvsoft
          well it was worth a shot :)

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Hi! CyoEncode might be good enough.

            C 1 Reply Last reply
            0
            • ? A Former User

              Hi! CyoEncode might be good enough.

              C Offline
              C Offline
              ckvsoft
              wrote on last edited by
              #6

              @Wieland

              thx, but how must i handle BSD License with QT?
              I'm not sure of handling Mixed Liceses for my Project. Now i only use LGPL

              lg Chris

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                IANAL but as CyoEncode is published under BSD 2-Clause license it is IMHO compatible with both GPL and LGPL.

                C 1 Reply Last reply
                0
                • ? A Former User

                  IANAL but as CyoEncode is published under BSD 2-Clause license it is IMHO compatible with both GPL and LGPL.

                  C Offline
                  C Offline
                  ckvsoft
                  wrote on last edited by ckvsoft
                  #8

                  @Wieland
                  Thanx for Info

                  I adapt and extract Base32 from CyoEncode for my need.

                  thx

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved