Giter VIP home page Giter VIP logo

libbase32's Introduction

libbase32

A C implementation of Douglas Crockford's base32 encoding. The Crockford scheme is designed to be able to achieve the following:

  • Be human readable and machine readable.
  • Be compact. Humans have difficulty in manipulating long strings of arbitrary symbols.
  • Be error resistant. Entering the symbols must not require keyboarding gymnastics.
  • Be pronounceable. Humans should be able to accurately transmit the symbols to other humans using a telephone.

Base32 Scheme

Canonical information about Crockford-encoding scheme is found at:

http://www.crockford.com/wrmg/base32.html

##IMPORTANT NOTE This library is maintained by me, please don't bother anyone else about it. Especially not Douglas Crockford.

API

size_t base32enc(char *dest, const void *src, size_t s_len);

Encodes s_len bytes from src to base32 and stores the result in dest.
returns size of dest

size_t base32dec(void *dest, size_t dest_len, const char *src);

Decodes src to dest for up to dest_len bytes.

size_t base32encsize(size_t count);

Returns estimate of number of bytes required to encode count raw bytes

size_t base32decsize(size_t count);

Returns estimate of number of bytes required to decode, count long base32 string

libbase32's People

Contributors

ahmed-masud 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.