Skip to content

Instantly share code, notes, and snippets.

@barrysteyn
barrysteyn / Base64Decode.c
Last active May 13, 2024 07:45
Base64 Encoding/Decoding with the OpenSSL c api
//Decodes Base64
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <string.h>
#include <stdio.h>
int calcDecodeLength(const char* b64input) { //Calculates the length of a decoded base64 string
int len = strlen(b64input);
int padding = 0;
@yasith
yasith / gist:1508312
Created December 22, 2011 00:11
solarized fix for .vimrc
set t_Co=256
set background=dark
if !has('gui_running')
let g:solarized_termcolors=&t_Co
let g:solarized_termtrans=1
endif
colorscheme solarized