Skip to content

Instantly share code, notes, and snippets.

View Jerrylum's full-sized avatar
👀
Given enough eyeballs, all bugs are shallow.

Jerry Lum Jerrylum

👀
Given enough eyeballs, all bugs are shallow.
  • Hong Kong Joint School Technology Education Association
  • Hong Kong
  • 13:41 (UTC +08:00)
  • X @jerrylum10
View GitHub Profile
@iso2022jp
iso2022jp / base94.c
Created November 11, 2012 09:05
base94 encoder/decoder
#include "base94.h"
void base94_encode(const unsigned char *plain, unsigned char *code) {
// high * 2^64 | low
unsigned long long value
= ((unsigned long long)plain[1] << 56) | ((unsigned long long)plain[2] << 48)
| ((unsigned long long)plain[3] << 40) | ((unsigned long long)plain[4] << 32)