Giter Site home page Giter Site logo

ziglerlong / simplebaselib4cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ron4fun/simplebaselib4cpp

0.0 2.0 0.0 36 KB

SimpleBaseLib4CPP is a simple C++11 Base Encoding library that provides at the moment support for encoding and decoding various bases such as Base16, Base32 (various variants), Base58 (various variants), Base64 (various variants).

License: MIT License

C++ 76.08% C 23.92%

simplebaselib4cpp's Introduction

SimpleBaseLib4CPP

SimpleBaseLib4CPP is a simple C++11 Base Encoding library that provides at the moment support for encoding and decoding various bases such as Base16, Base32 (various variants), Base58 (various variants) and Base64 (various variants).

Supported Encodings:

Base64: Default, DefaultNoPadding, UrlEncoding, XmlEncoding, RegExEncoding and FileEncoding alphabets 
(and any custom alphabet you might have)

Base58: Bitcoin, Ripple and Flickr alphabets (and any custom alphabet you might have)

Base32: RFC 4648, Crockford and Extended Hex (BASE32-HEX) alphabets with Crockford character substitution 
(or any other custom alphabets you might want to use)   

Base16: An experimental hexadecimal encoder/decoder.

Tested Enviroments:

Visual Studio 2015.

Usage Examples.

#include "stdafx.h"
#include "Base/SimpleBaseFactory.h"
#include "Utils/Utilities.h"

int main()
{
    IBase32 base32 = SimpleBaseFactory::CreateBase32Crockford();
    string rawData = "foobar";
	string result;

    SimpleBaseLibByteArray bytes = Utilities::convertASCIIStringToByteArray(rawData);

	result = base32->Encode(bytes);
	        
    return 0;
}

Unit Tests:

To run the unit tests, you should have boost library installed in your workstation.

License

This "Software" is Licensed Under MIT License (MIT) .

Tip Jar

  • ๐Ÿ’ต Bitcoin: 1Mcci95WffSJnV6PsYG7KD1af1gDfUvLe6

Conclusion

Special thanks to Xor-el for making this library avialable in the first place.

simplebaselib4cpp's People

Contributors

ron4fun avatar

Watchers

James Cloos 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.