Mar 14, 2016 09:12 AM
(This post was last modified: Mar 14, 2016 09:12 AM by sarciszewski.)
Available on GitHub.
Background
RFC 4648 is an internet standard defined by the Internet Engineering Task Force (IETF) that specifies various ways to encode binary data for use in non-binary-safe transmissions; e.g. email.
These encoding schemes are useful for building cryptography features, especially when you need to store cryptographic key material in a configuration file (e.g. config.json).
However, the way these functions are normally implemented use table look-ups indexed by the data you are encoding.
So I wrote (and am releasing) a PHP implementation of RFC 4648 that performs encoding and decoding in constant-time (i.e. side-steps cache-timing attacks).
Background
RFC 4648 is an internet standard defined by the Internet Engineering Task Force (IETF) that specifies various ways to encode binary data for use in non-binary-safe transmissions; e.g. email.
These encoding schemes are useful for building cryptography features, especially when you need to store cryptographic key material in a configuration file (e.g. config.json).
However, the way these functions are normally implemented use table look-ups indexed by the data you are encoding.
So I wrote (and am releasing) a PHP implementation of RFC 4648 that performs encoding and decoding in constant-time (i.e. side-steps cache-timing attacks).


