Jump to content

Online Code Decrypter


dteec

Recommended Posts

We did this a while ago... who was it that posted one? Must have been at least 6 months ago.

 

In Chicago, this was posted in our Yahoo Group the code for a quick little offline utility:

quote:
<HEAD><SCRIPT language=javascript>function decode() {var instring = new String(document.forms[0].code.value);var outstring=new String("");var alphabet=new String("abcdefghijklmnopqrstuvwxyz");var key = new String ("nopqrstuvwxyzabcdefghijklm");var slen = instring.length;var i, orig_char, pos, translated_char;instring = instring.toLowerCase();for ( i = 0; i < slen; ++i ){    orig_char = new String(instring.charAt(i));    //find letter's position in alphabet    pos = alphabet.indexOf(orig_char);    if ( pos == -1) {        //noncharacter value. don't translate        outstring = outstring.concat(orig_char);    } else {  //translate character        translated_char = new String(key.charAt(pos));        outstring =  outstring.concat(translated_char);    }}document.forms[0].code.value = outstring;}</SCRIPT></HEAD><FORM><TEXTAREA  name="code" rows=10 cols=70 wrap="physical"></TEXTAREA><INPUT type=button value="Decode" onclick="javascript:decode()"><Input type=reset></FORM>

 

But if you think about it, if you're online, you can just click "decrypt it." If you're out in the field, you probably won't have computer access, so you'll have to do it by hand anyway.

 

Markwell

Chicago Geocachers

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...