QUOTE (Wyvern @ Aug 15 2005, 08:12 PM)

HELP!!!

Can anyone out there provide me with a basic Binary key something which will allow me to convert passages of text into Binary code? Im not overly concerned with full technical applications I just need a chart that I can use to convert characters and keystrokes if this is indeed possible?

If anyone can help it would be greatly appreciated as wading through computer programming books and mathematical calculations Im probably going right past what I need.

Simple answer:

http://nickciske.com/tools/binary.php

Less simple answer:

Binary is really pretty simple.

People normally use decimal since we have 10 fingers. In decimal the right most digit has a value of 1, the digit to the left of it has a value of 10 times as much (10) and so on (100, 1000, 10000).

So in decimal the number 145 is 1 lot of 100, 4 lots of 10 and 5 lots of 1.

(obviously the digits we use are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 - 0 counts as a digit so there is no 10, that's 2 digits lots of people seem to get confused by that).

Binary is basically the same except with 2 digits (0 and 1). Like in decimal the right most digit has a value of 1 but this time we multiply by 2 instead of 10 as we go left (this number is the base, decimal is base 10, binary is base 2, there are others in between and more above 10 using letters once we run out of digits).

So 145 in binary would be 10010001 - 1 lot of 128, 0 lots of 64, 0 lots of 32, 1 lot of 16, 0 lots of 8, 0 lots of 4, 0 lots of 2 and 1 lot of 1. Obviously it's slightly harder to work out, which is why I posted the converter, but useful for computers since a wire can have 1 of 2 states - on or off (on = 1, off = 0).

As for converting text to binary, this is done by assgning a number to each letter, character and symbol and converting that letter into binary. By far the most common system for doing this is ASCII (American Standard Code for Information Interchange) and it also happens to the one that convertor uses. ASCII uses 256 (0 to 255) codes so each letter uses 8 binary digits (a byte). Well, actually extended ASCII uses 0 - 255, the original version used 0 - 127 and used the spare digit for error correction back when communication between computers was less reliable.

A table of ASCII codes is here:

http://www.lookuptables.com/

Some useless stuff for completeness (maybe I just like the sound of my own e-voice):

1 binary digit = a bit

4 binary digits = a nibble (cool word )

8 binary digits = a byte

Other bases that are commonly used:

**Unary (base 1)**, weird because each digit has the same value (1 x 1 = 1). Decoding is as simple as counting the 1s.

*15(decimal) = 111111111111111(unary).*

**Octal (base 8)**.

*15(decimal) = 21(octal).*

**Binary (base 2)**.

*15(decimal) = 1111(binary).*

**Hexadecimal (base 16)**, useful because 2 hexadecimal digits are equivalent to a byte in binary, it tends to be used instead of binary in programming. This is the nifty looking one that uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f.

*15(decimal) = f0(hex).*

Sorry if there are loads of glaring ommisions - this is all of the top of my head.

Have fun.