1

how can i convert

http

to

h$#t!t@@^#p

i have seen this code which was automatically injected into my site.......

is there and md5 like php function or their is any other way

4
  • 2
    Please clarify. What are you asking? Commented Jan 6, 2010 at 17:46
  • 1
    Looking at some of your earlier questions, is your main concern is how could someone maliciously distort your javascript into unreadable code? Commented Jan 6, 2010 at 17:48
  • 3
    I'd be rather more concerned about fixing the exploit that let the Russians compromise your site! Commented Jan 6, 2010 at 17:50
  • 1
    Yeah, with such wicked language you risk running afoul of the Communication Decency Act (CDA) too. Commented Jan 6, 2010 at 18:00

3 Answers 3

6

It's called obfuscation. You can find a list of tools in many SO questions. For example:

Sign up to request clarification or add additional context in comments.

Comments

1

What you search for is Obfuscation.

This one works with PHP and pretty good:
http://www.phpclasses.org/browse/package/1863.html

Comments

1

This is what you want.

var txt = "http";
console.log(btoa(txt));  //gives you "aHR0cA=="

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.