View Full Version : 01000010 01101001 01101110 01100001 01110010 01111
Keefe
05-25-2002, 01:22 AM
01001001 01100110 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01101111 01110110 01100101 01110010 00101101 01100101 01100100 01110101 01100011 01100001 01110100 01100101 01100100 00101110
vee_ess
05-25-2002, 04:31 PM
01101000 01100101 00100000 01101000 01100101 00100000 01101000 01100101 00101110 00100000 01001001 00100000 01100001 01101101 00100000 01110011 01101111 00100000 01100011 01101111 01101111 01101100
it says: he he he. I am so cool.
vee_ess
05-25-2002, 04:37 PM
01101000 01100101 01110010 01100101 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01100100 01100101 01100011 01101111 01100100 01100101 01110010 00101110
it says: here is the decoder.
use the decoder in qbasic which is provided in previous message.
vee_ess
05-25-2002, 04:40 PM
01101000 01100101 01110010 01100101 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01100101 01101110 01100011 01101111 01100100 01100101 01110010 00101110
it says: here is the encoder.
which you also use in qbasic, and it self-explanatory...IM me for any questions.
Uranium-235
05-26-2002, 12:36 AM
01001000/01100101/01110010/01100101/00100000/01101001/01110011/00100000/01100001 01101110/01101111/01110100/01101000/01100101/01110010/00100000/01100101/01101110/01100011/01101111/01100100/01100101/01110010/00101110/00100000/01001001/00100000/01110111/01110010/01101111/01110100/01100101/00100000/01100001/00100000/01101100 01101111/01101110/01100111 00100000/01110100/01101001/01101101/01100101/00100000/01100001/01100111/01101111/00101110/00100000/01000001/01101100/01110100/01101000/01101111/01110101/01100111/01101000/00100000/01101001/01110100/00100000/01110101/01110011/01100101/01110011 00100000/01100110/01101111/01110010/01100101/01110111/01100001/01110010/01100100/00100000/01110011/01101100/01100001/01110011/01101000/01100101/01110011/00100000/01100010/01100101/01110100/01110111/01100101/01100101/01101110/00100000/01100101/01100001/01100011/01101000/00100000/01100010/01101001/01101110/00101101/01100001/01110011/01100011/01101001/01101001/00100000/01100100/01101001/01100111/01101001/01110100
it says: Here is another encoder. I wrote a long time ago. Although it uses foreward slashes between each bin-ascii digit
http://dynamic2.gamespy.com/~extreme/scripts/binary.php
Keefe
05-26-2002, 12:39 AM
01000110 01110101 01100011 01101011 00100000 01111001 01101111 01110101 00100001
Uranium-235
05-26-2002, 12:42 AM
oh yeah and the source
<?php
SPAM SPAM SPAM//binary.php
SPAM SPAM SPAM//binary, the way it should be (ascii -> binary str)
SPAM SPAM SPAM//8-bit ONLY (characters)
SPAM SPAM SPAM
switch($convert)
{
SPAM SPAM SPAMcase true:
SPAM SPAM SPAMfor($i = 0; $i < strlen($ascii); $i++)
SPAM SPAM SPAM SPAM SPAM SPAM$strarr[$i] = ord(substr($ascii, $i, 1)); SPAM SPAM SPAM
SPAM SPAM SPAM
SPAM SPAM SPAMfor($i = 0; $i < count($strarr); $i++)
SPAM SPAM SPAM SPAM SPAM SPAM$binary_str_pre[$i] = dec_2_bin($strarr[$i]);
SPAM SPAM SPAM
SPAM SPAM SPAM$ascii_bin_str = implode("/", $binary_str_pre);
SPAM SPAM SPAM
SPAM SPAM SPAM?><input type="text" size="150" value="<?php print($ascii_bin_str); ?>"><?php
SPAM SPAM SPAM
SPAM SPAM SPAMbreak;
SPAM SPAM SPAMdefault:
?>
<title>ASCII to binary</title>
<form action="binary.php" method="post">
<input type="hidden" name="convert" value=true>
String to Convert: <input type="text" name="ascii" size=70><input type="submit">
</form>
<?php
SPAM SPAM SPAMbreak;
}
function dec_2_bin($dec)
{
$base = 128;
for($i = 0; $i < 8; $i++)
{
SPAM SPAM SPAMif ($dec >= SPAM$base)
SPAM SPAM SPAM{
SPAM SPAM SPAM SPAM SPAM SPAM$dec -= $base;
SPAM SPAM SPAM SPAM SPAM SPAM$bin .= '1';
SPAM SPAM SPAM}
SPAM SPAM SPAMelse
SPAM SPAM SPAM SPAM SPAM SPAM$bin .= '0';
SPAM SPAM SPAM$base /= 2;
}
return $bin;
}
?>
vee_ess
05-26-2002, 01:22 AM
you guys aren't using ascii, are you? ??? I thought the prog was bugged but i did it by hand and that isn't ascii at all. :o
10101110 11001110 10100110 00000100 10000110 11001110 11000110 10010110 10010110 00000100 11110110 01001110 00000100 00101110 10100110 00110110 00110110 00000100 11001110 00101110 10000110 01110110 00100110 10000110 01001110 00100110
vee_ess
05-26-2002, 01:33 AM
I figured it out...I had the same problem. to encode ASCII, you must start out with the last bit and move over to the first one in each byte, but in you go through the bytes in order. what you link does is place each of the bytes backwards because you are most likely using one variable, check my prog...
FOR y = 8 TO 1 STEP -1
IF total >= (2 ^ (y - 1)) THEN
total = total - (2 ^ (y - 1))
byte$ = "1" + byte$
ELSE
byte$ = "0" + byte$
END IF
NEXT y
binary$ = binary$ + byte$
notice i put the "1" + byte$ instead of byte$ + "1": the 1 needs to go before the other ones in the byte because it is going in reverse order...
11000110 00010110 10000110 01110110 11100110 10100110 00000100 10011110 11110110 10101110 01001110 00000100 11000110 11110110 00100110 10100110 00000100 00001110 00110110 10100110 10000110 11001110 10100110
it says: change your code please
(cuz it will be more convenient than mine then...)
Uranium-235
05-26-2002, 04:45 PM
are you telling me to change mine? I don't see anything wrong with it
vee_ess
05-26-2002, 05:06 PM
10011110 11110110 10101110 00000100 10000110 10010110 01110110 00101110 00000100 10101110 11001110 10010110 01110110 00000100 10000010 11001010 11000010 10010010 10010010 10000100 10000100
it says: you aint usin ASCII!
it is usin the opposite of it... instead of 00010001 it says 10001000!!! ( i had tha same problem)
Uranium-235
05-26-2002, 09:56 PM
Actually, its the way I was taught binary.
let's take u
SPAM0 SPAM SPAM1 SPAMSPAM1 SPAM 1 SPAM 0 1 0 1
SPAM| SPAM SPAM| SPAM SPAM| SPAM | SPAM SPAM| | SPAM| |
128 64 32 16 SPAM8 4 2 1 = 117 (ascii u)
Even though its read from left to right, the binary digits are calculated from right to left, kind of like IP addresses are done. It's the way I've been taught binary in highschool, and in my college basic computer class (required class - totally ez though, considering my expirence level ;) )
TheRogue
05-27-2002, 03:24 AM
you guys all go stuck keys or sommat?
Keefe
05-27-2002, 03:27 AM
Hey RogueProtoKol, you are kind of like price... he he
the artist formerly known as prince
SpyderBite
05-27-2002, 10:47 AM
Quick story..
My second year in college, my french professor was trying to convince me to major in English/French (double major) in order to translate English novels in France. I was a CIS major at the time.
After many skipped classes spent in the computer lab at SIU, my french professor decided to surprise me with a second quiz in addition to our normal weekly one. It was completely written in hexadecimal and binary.
I got an 85% on the test written in French and a 100% on the other. Needless to say my french professor gave up her quest to convert me to a liberal arts major. ;)
vee_ess
05-27-2002, 11:12 PM
Uranium-235, are you sure? you might be right...if you are i feel like an @$$. cuz that is the way i was taught in high, but your high school is probablly better than mine, i will guarantee it. just in case, i am makin an ammended version of my programs into one, and changing it so it is the way it should be.
you know what, you probably are right...why else would Keefe also do it like that? i apologize I was wrong again. i am on a streak. SPAM this sux.
Keefe
05-27-2002, 11:24 PM
vee_ess...you have the coolest avatar!
vee_ess
05-27-2002, 11:26 PM
merci and hell yeah
Uranium-235
05-28-2002, 01:37 AM
yeah it's a visiontek card.
I have the coolest sig though. hands down
vBulletin® v3.6.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.