4 ms·
> Both comments are wrong since "Cryptocat.randomString(64, 0, 0, 1, 0)" generates a string that is 64 decimal digits which is 212.6 bits or 26.6 bytes. How ca
by arthulia 13y ago
> Both comments are wrong since "Cryptocat.randomString(64, 0, 0, 1, 0)" generates a string that is 64 decimal digits which is 212.6 bits or 26.6 bytes.
How can you have .6 bytes or bits?
- bmh100 13y agoA bit is a 0 or a 1. Two bits is 00, 01, 10, or 11. Each bit doubles the amount of information. This means that information representing information as bits products powers of 2. To get the number of bits (the power of 2 to represent the number), one takes the log, base 2, of the number. If I took the example of 2 bits and limited it to 00, 01, 10, there would be 1.6 bits. Log2(3) = 1.6.