Cryptography Reference
In-Depth Information
2
S
ometimes, you may only have the natural logarithm (ln) or the base 10 logarithm (plain log). In these
cases, you can convert to the base 2 logarithm by using the equation log
2
(
x
) = log(
x
)/log(2) = ln(
x
)/ln(2).
3
Division by 2 in computers is different from normal division. With numbers written in binary, simply re-
moving the least significant bit is equivalent to dividing by 2. For example, 24 is 11000 in binary. If we
remove the last bit, we get 1100, which is 12 — the same result as dividing by 2.
Search WWH ::
Custom Search