By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

How do I encrypt or encode a string?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.