Results 1 to 8 of 8

Thread: Writing in binary

  1. #1
    Combat Soldier
    Fabrizo's Avatar

    Join Date
    Mar 2004
    Location
    Forida
    Posts
    901

    Writing in binary

    Recently a site was discovered for Project Offset (http://www.projectoffset.com/astormiscoming/)

    At the bottom of the page is the binary code:
    01101011 01100101 01100101 01110000 00100000 01100111 01101111 01101001 01101110 01100111

    Which translates to decimal:
    107 101 101 112 32 103 111 105 110 103

    Which, in ASCII, is:
    k e e p [:space:] g o i n g

    My first thought upon finding this out was how awsome it was they hid a message in binary, but my second one was "How exactly does one translate words to binary?". Are their any methods or programs out their to achieve this? I think it would be neat to write messages in binary just for kicks.

  2. #2
    BLAST PROCESSING Foot Soldier
    drx's Avatar

    Join Date
    Jun 2006
    Posts
    441
    There are programs that do it for you, like here.

    In C, one could do:

    for (i=0;str[i];i++) printf("%08b ",str[i]);

  3. #3
    Old School Member ASSEMbler Hardcore
    A. Snow's Avatar

    Join Date
    Mar 2004
    Location
    Parts Unknown
    Posts
    2,280
    Well, it's rather brutal here. Right now we are advising all our clients to put everything they've got into canned food and shotguns.

  4. #4
    mamedev Combat Soldier
    smf's Avatar

    Join Date
    Apr 2005
    Location
    England
    Posts
    648
    Quote Originally Posted by drx
    There are programs that do it for you, like here.

    In C, one could do:

    for (i=0;str[i];i++) printf("%08b ",str[i]);
    I don't know what compiler you are using, but that isn't standard.
    [CODE]
    #include <stdio.h>
    int main( int argc, char **argv )
    {
    int arg;
    int i;
    int b;

    for( arg = 1; arg < argc; arg++ )
    {
    for( i = 0; i < strlen( argv[ arg ] ); i++ )
    {
    for( b = 0; b < 8; b++ )
    {
    printf( "%c", '0' + ( ( argv[ arg ][ i ] >> ( 7 - b ) ) & 1 ) );
    }

    printf( "\n" );
    }
    }
    }
    [/CODE]

    smf
    Last edited by smf; 04-22-2007 at 06:59 AM.

  5. #5
    Lemon Party Organizer and Promoter ASSEMbler Chosen
    Paragon
    GaijinPunch's Avatar

    Join Date
    Mar 2004
    Location
    Tokyo
    Posts
    10,576
    Anyone share my first thought? That there are far better uses for C (or Perl, or VB, or whatever) than this?

  6. #6
    and the lost N64 Hardware Docs ASSEMbler Hardcore
    kammedo's Avatar

    Join Date
    Sep 2004
    Location
    Ladinia
    Posts
    2,101
    Quote Originally Posted by Fabrizo
    Recently a site was discovered for Project Offset (http://www.projectoffset.com/astormiscoming/)

    At the bottom of the page is the binary code:
    01101011 01100101 01100101 01110000 00100000 01100111 01101111 01101001 01101110 01100111

    Which translates to decimal:
    107 101 101 112 32 103 111 105 110 103

    Which, in ASCII, is:
    k e e p [:space:] g o i n g

    My first thought upon finding this out was how awsome it was they hid a message in binary, but my second one was "How exactly does one translate words to binary?". Are their any methods or programs out their to achieve this? I think it would be neat to write messages in binary just for kicks.

    In case you need the information : words are made up of characters, characters in ASCII are represented by numbers, numbers can be translated into a base-2 (hey that's binary! :P) representation. Have a look at wikipedia for that :P
    -------->>>>> YOUR HELP COUNTS : www.amiscdlaladinia.info <<<<<<<<<<<------------------

    "Dai diamanti non nasce niente, dal letame nascono i fiori" - Fabrizio de Andrč

    On 1000 and heading to 10000....

    Oh, BTW : Computational power is obvious today. Long-lasting gameplay not anymore.

  7. #7
    gigalo mascarading as a simple gamer ASSEMbler Acolyte
    Paragon
    Barc0de's Avatar

    Join Date
    Oct 2005
    Location
    UK and Greece
    Posts
    11,193
    it would depend on the convention. mobile phones for example dont use the same standards (they used 5bits per byte in messaging etc)
    You can ask for any old woman
    You can ask for an army of ants
    You can ask for a pillar of poison
    You can ask for sheep and shavers

    And you can die for
    Be careful what you wish for

  8. #8

    Tribuni Angusticlavii
    cahaz's Avatar

    Join Date
    May 2004
    Location
    Canada / Quebec
    Posts
    4,587
    there was a time where i could write pages of text in binary, using my mind and a pen.

    There's a logic to it, but i don't remember much. I think every letters starts with 01, then the third number, 0 or 1, depends if its a Big or a small letter, 1 for big 0 for small i think. The first from the right always switch from 0 to 1 at each letter, the second (always from the right) switch at every four, but is already at the second zero at the start, the 3rd from the right switch at every 8 but already is at the second 0 too, and shit like that.


    It was funny in a geek way.
    "(...)A One World Government and one-unit monetary system, under permanent non-elected hereditary oligarchists who self-select from among their numbers in the form of a feudal system as it was in the Middle Ages. In this One World entity, population will be limited by restrictions on the number of children per family, diseases, wars, famines, until 1 billion people who are useful to the ruling class, in areas which will be strictly and clearly defined, remain as the total world population." Dont let media feed you with lies. open your eyes and search information yourself.

Bookmarks

Posting Permissions

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