Giter Club home page Giter Club logo

base64's Introduction

base64

This project is a static, extremely lightweight C++ library that offers basic base64 encoding and decoding. It supports in-place encoding and decoding as well as helper functions that allow easier use. Custom alphabets can be used. Helper functions and STL dependencies can be removed by defining BASE64_NO_GIMMICKS before including the library. The comments are doxygen-compatible.

Contents

These are the most important functions in the library:

  • base64::encode() for encoding data into base64 format. There is an overloaded version that converts the data into an std::string.
  • base64::decode() for decoding data. There is an overloaded version that converts the data into an std::vector<std::uint8_t>.
  • base64::Configuration allows to create custom alphabets to pass to the algorithms.

License

This library is licensed under the GNU Affero General Public License, version 3 or newer. A copy can be found in the file LICENSE.

Installation

Make sure cmake is installed. Navigate into the base64 directory and execute:

cmake .

Now, makefiles (or project files) have been generated.

Future features

Some features are planned to be implemented in the future.

  • OpenMP or some other parallelisation support.
  • Optional linebreaks in encoded text.
  • Optional checksums at the end of lines in encoded text.

base64's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.