Education Station:
Shifting and Masking with a Side of Crypto
By Edward Barnard
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.
Read in Full
This article was originally published in the February 2018 issue of php[architect] magazine. You can read the complete article at the following links. To see the full issue, please subscribe or purchase the complete issue.
Leave a comment
Use the form below to leave a comment: