Skip to content

Instantly share code, notes, and snippets.

View leon0516's full-sized avatar

leon leon0516

View GitHub Profile
@leon0516
leon0516 / Base64.md
Last active April 9, 2017 02:12 — 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