← Back

ofxCrypto

github.com/jkosoy/ofxCrypto · @jkosoy
OF 0.9 Web/Networking

An openFrameworks library for encryption.

14 6 Last commit 10y ago Created 13y ago

Forks

Forks pushed to more recently than jkosoy/ofxCrypto itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

n1ckfg/ofxCrypto by @n1ckfg · ★ 0 · pushed 1mo ago
mindcontact-dev/ofxCrypto by @mindcontact-dev · ★ 0 · pushed 5y ago
d3cod3/ofxCrypto by @d3cod3 · ★ 0 · pushed 6y ago
musiko/ofxCrypto by @musiko · ★ 3 · pushed 9y ago

README

ofxCrypto



An openFrameworks library for encryption. Supports MD5, SHA1 and Base64.

Simple Example



Include the addon in your openFrameworks project as normal. To call, simply:

ofxCrypto::md5("hello world"); ofxCrypto::sha1("hello world"); ofxCrypto::base64_encode("hello world"); ofxCrypto::base64_decode("aGVsbG8gd29ybGQ="); // hello world.

Binary Encryption



You can easily encode and decode ofBuffer objects to Base64 - useful for getting string representations of binary data or in conjunction with HTML5 projects.

string encoded = ofxCrypto::base64_encode(myOfBufferObject); ofBuffer decoded = ofxCrypto::base64_decrypt(myEncodedString);

See the example project for an example of an image being encoded, decoded and then re-displayed.

Get this addon

HTTPS
SSH