Sunday, December 13, 2009

Binary Hex Morse Everything Converter



This past week my friend Jacquelyn started posting all sorts of things on facebook in binary, morse code, hexadecimal and other such craziness. Of course, I wanted to get in on the fun so I posted some things to her in various codes and what not. She sent a reply to me in octal(base 8). I suspected that was what it was but I didn't want to do the math by hand and I couldn't find a good converter, so I decided to write one. Well, once my geekiness starts going it can't be stopped. What you see below is the result of my geekiness gone wild over a whole weekend. You can convert to and from morse code, binary, hex, or any numerical base. I even threw in pig latin because I felt it was necessary. I also put in the Ong language which was a language that my friend Cong Yong Long ee and I invented in junior high school. I know, I didn't provide a conversion back from Ong or Pig Latin. I was tired and decided I was done.


Text


Morse


Decimal/Ascii Code


Binary


Any Base


Hex


Pig Latin

Ong

A few notes: I threw this together over the course of one weekend. All of the conversions work but I didn't try to prevent you from putting in any invalid input. I know that makes it not professional grade. If anyone wants to pay me I am willing to upgrade it to that level. For this reason, just be aware that if you put in bad input you'll get bad output. Also, things like the binary field are designed to view binary as a computer does, in bytes. So numbers above 255 won't compute. But the any base field doesn't have that restriction so feel free to change it to 2. The default is 8 because octal is awesome.

Also, one more thing: It worked in all browsers when I tested the javascript in a file on my machine. Once I stuck it in blogger it quit working for firefox. Blogger and firefox are stupid. Sorry if it doesn't work in your browser, blame blogger.

9 comments:

  1. .... .. .--- . ..-. ..-.

    Hahaha, it makes me happy that you spent the weekend doing this.

    ReplyDelete
  2. 00000000 01111001 01101111 01110101 01110010 00100000 01100111 01100101 01100101 01101011 01101001 01101110 01100101 01110011 01110011 00100000 01100001 01110011 01110100 01101111 01110101 01101110 01100100 01110011 00100000 01101101 01100101

    ReplyDelete
  3. - .... .. ... .. ... --. --- .. -. --. - --- -... . ... --- ..- ... . ..-. ..- .-.. .- ... .. -.-. --- -. - .. -. ..- . - --- ..-. .- -.-. . -... --- --- -.- ... - .- .-.. -.- .--- .- -.-. -.- .. . ..--.. - .... .- -. -.- ... .--- . ..-. ..-.

    ReplyDelete
  4. -- -.-- -.-. ... ... -.-. .-.. .- ... ... .... .- ... - ..- .-. -. . -.. -- . --- ..-. ..-. - --- -.-. --- -.. . ... -... ..- - .. .- -- ...- . .-. -.-- .. -- .--. .-. . ... ... . -.. .-- .. - .... -.-- --- ..- .-. ... -.- .. .-.. .-.. ...

    ReplyDelete
  5. I am very sad... I can't make it work... :( Why does your blog hate me so much?

    ReplyDelete
  6. Aren't you so happy I let you ignore me for most of the weekend. It is a good thing I like how smart you are or I might have been offended.

    ReplyDelete
  7. Your blog also hates me. No binary, etc from me!

    ReplyDelete
  8. Thanks this is nice.

    1X 32 2R 33 2S 2X 32 2V W 38 2W 2X 32 2V 37 W 3B 2X 38 2W W 38 2W 2X 37 W 30 2P 32 2V 39 2P 2V 2T 37 W 2Z 32 33 3B 2X 32 2V W 2P 32 3D 33 32 2T W 2R 2P 32 W 38 36 2P 32 37 30 2P 38 2T W 2X 38 W 2P 37 W 2T 2P 37 3D W 2P 37 W 38 2W 2X 37 W 31 2P 2Z 2T 37 W 31 2T W 3B 33 36 36 2X 2T 2S W 38 33 W 2Q 2T W 2W 33 32 2T 37 38 18 W 32 33 38 2W 2X 32 2V W 2X 37 W 36 2T 2P 30 30 3D W 37 2T 2R 39 36 2T 1A

    ReplyDelete
    Replies
    1. Base 36. Very clever. Don't worry. Encryption is much more sophisticated than this. There are always ways to crack every code, but your data is much more secure than it would be if it just used one of these encodings.

      Delete

Related Posts Plugin for WordPress, Blogger...