PHP Architect · Vol 17, Issue 2 · February 2018
Education Station: Shifting and Masking with a Side of Crypto
The basics can be tricky. This month we take a careful walk-through of a few lines of cryptographic code in PHP. This leads us through the difference between ones' complement and two's complement representation. We achieve weirdness by combining logical AND with integer addition.
The full article is in PHP Architect Vol 17, Issue 2. Subscribe to read it and every new issue.