How do I encrypt or encode a string?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ok

    How do I encrypt or encode a string?

    I think my last question was not clear, so people gave me the reverse
    answer.

    I want to put a string in an html file, and human eyes or robots will not be
    able to read it.

    For example I want to turn this one
    <a href="#" onclick="this.h ref='http://www.google.com' ">click here</a>
    into
    <a href="#" onclick="this.h ref=' encoded of h encoded of t encoded of t
    encoded of p encoded of :
    encoded of : encoded of / '">click here</a>

    I prefer bit OR, the ^ opertaion, but ASCII is fine with me, like %40%xx%xx

    This plus disable right click will make search engines and view source
    difficult but still possible to know where it is linked too,




  • Fred Oz

    #2
    Re: How do I encrypt or encode a string?

    ok wrote:[color=blue]
    > I think my last question was not clear, so people gave me the reverse
    > answer.
    >
    > I want to put a string in an html file, and human eyes or robots will not be
    > able to read it.[/color]

    Last response was "Google javascript encode", so I did. The very first
    hit was:



    "These scripts are intended to explain how to "hide" HTML and/or
    javascript from other people who view your page's source code. It is not
    foolproof, but it does make it more difficult to read and understand the
    source code. "

    That is what you want to do, isn't it?

    Comment

    Working...