Skip to content

Instantly share code, notes, and snippets.

View svantelidman's full-sized avatar

Svante Lidman svantelidman

  • Stockholm, Sweden
View GitHub Profile
@svantelidman
svantelidman / Base64.md
Created April 12, 2019 13:08 — forked from barrysteyn/Base64.md
OpenSSL Base64 En/Decode: Portable and binary safe.

OpenSSL Base64 Encoding: Binary Safe and Portable

Herewith is an example of encoding to and from base64 using OpenSSL's C library. Code presented here is both binary safe, and portable (i.e. it should work on any Posix compliant system e.g. FreeBSD and Linux).

License

The MIT License (MIT)

Copyright (c) 2013 Barry Steyn