471,071 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

How do I encrypt or encode a string?

ok
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.href='http://www.google.com'">click here</a>
into
<a href="#" onclick="this.href=' 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,


Jul 23 '05 #1
1 1831
ok wrote:
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.


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

http://scriptasylum.com/tutorials/en...de-decode.html

"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?
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Julia Briggs | last post: by
4 posts views Thread by Spikinsson | last post: by
14 posts views Thread by Andrew Poulos | last post: by
3 posts views Thread by TJS | last post: by
2 posts views Thread by Miles Keaton | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.