Results 1 to 7 of 7

Thread: binary to text

  1. #1

    binary to text

    Anyone know where I can get a binary to text convertor?

    Thanks
    Cory Cone
    www.XstreamHost.com

  2. #2
    Join Date
    Jan 2001
    Location
    Illinois, USA
    Posts
    7,175
    so you want to see what that sig says too eh ?

    http://www.sitinthecorner.com/binary/binary.php

  3. #3
    Dang right I do!
    Cory Cone
    www.XstreamHost.com

  4. #4
    All them numbers just for "vex loves you! "

    Thanks akash
    Cory Cone
    www.XstreamHost.com

  5. #5
    ultra edit was it.......get it from download.com
    its super.
    » Poised.com - Marketing with Passion
    Tamer o'kail - Creative Director

  6. #6
    Join Date
    Sep 2002
    Location
    Phoenix area
    Posts
    1,121
    ...lol...
    Learn survival/prepper information from a combat veteran at Graywolf Survival

  7. #7
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    283
    PHP Code:
    <?php

    if($action == "ENCODE") {
      
    $textToDecode AsciiToBinary ($textToEncode);
    } else if(
    $action == "DECODE") {
      
    $textToEncode BinaryToAscii ($textToDecode);
    }

    function 
    AsciiToBinary ($text)
    {
      for(
    $i=0$i strlen($text); $i++) {
        
    $new ord($text[$i]);
        
    $new decbin($new);
        
    $new strval($new);
        while (
    strlen($new) < 8) {
          
    $new "0" $new;
        }
        
    $text2 "$text2$new";
      }
      return 
    $text2;
    }

    function 
    BinaryToAscii ($text)
    {
      for(
    $i=0$i < (strlen($text)/8); $i++) {
        
    $new substr($text, ($i*8), 8);
        for(
    $j=0$j 8$j++) {
          if(
    $new[$j] == "1") { 
            
    $new =  chr(bindec(substr($new$j,8-$j)));
            
    $text2 "$text2$new";
            break 
    1;
          }
        }
        
      }
      return 
    $text2;
    }
    ?>
    <font face="verdana,arial,helvetica" size=1>
    <center><B>BINARY < - > ASCII CONVERTOR</B>
    <BR>
    </font>


    <table border=0 cellspacing=0 cellpadding=10><tr><form method="POST" action="index.php">
    <td align=center>
    <font face="verdana,arial,helvetica" size=1>

    <input type="hidden" name="action" value="ENCODE">
    <B>[ TEXT ]</B><BR>
    <textarea cols=30 rows=10 wrap="virtual" name="textToEncode" class="ff"><?php echo $textToEncode?></textarea>
    <BR>
    <input type="submit" class="btn" value="ENCODE &gt;&gt;">


    </td></form><form method="POST" action="index.php"><td align=center>
    <font face="verdana,arial,helvetica" size=1>


    <input type="hidden" name="action" value="DECODE">
    <B>[ BINARY ]</B><BR>
    <textarea cols=30 rows=10 wrap="virtual" name="textToDecode" class="ff"><?php echo $textToDecode?></textarea>
    <BR>
    <input type="submit" class="btn" value="&lt;&lt; DECODE">
    </td></tr></form></table>

    </td></tr></table>
    I made it about a year ago, enjoy.
    Jason Mansfield - jmansfie [at] uoguelph.ca

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •