Jump to content
Sign in to follow this  
Innovative

Source Encryption

Recommended Posts

Innovative

Is is possible (and i know it is possible because i saw a program "HTMLGUARDIAN" doing that) to encrypt the source of a HTML file and make it almost unreadable by humans but still readable by the web browser?

Share this post


Link to post
Share on other sites
nobbe

you can add some javascript which will decode the code to html..

but still - all those "encrypters" will still somewhere produce html code whis usually still can be displayed with "view source" after the page has loaded in the browser.

Share this post


Link to post
Share on other sites
Innovative

But HTMLGUARDIAN that i once saw made the encrypted source NOT SHOWING (might as well say it's showing but a human cant understand) even in VIEW SOURCE .

Share this post


Link to post
Share on other sites
Richard Robertson

I made a thing a while back that did something like this. I'll see if I can find it.

I'll look later, the server is being too slow right now.

Share this post


Link to post
Share on other sites
Innovative

That's awesome.. But i tested encrpyting

<?php

echo 'test';

?>

But it's not getting anything on the browser.

Share this post


Link to post
Share on other sites
NELyon

That's not HTML... That's PHP muttley

Share this post


Link to post
Share on other sites
Innovative

That's not HTML... That's PHP muttley

Since i know how to write that script , of course i know that's php =.=

How can i encrypt php too ?

Edited by xVivoCity

Share this post


Link to post
Share on other sites
Richard Robertson

You can't encrypt PHP because the server has to read a plaintext file. The browser doesn't see the PHP code, the server is the only one to touch it (when configured correctly).

Share this post


Link to post
Share on other sites
cppman

Is is possible (and i know it is possible because i saw a program "HTMLGUARDIAN" doing that) to encrypt the source of a HTML file and make it almost unreadable by humans but still readable by the web browser?

The simple answer is, if the browser can read it, so can the user. There is no way to "encrypt" an HTML page so that the user can't view the source. (Yes, you can use javascript, but you still have the source.) On another note, there really shouldn't be any reason to encrypt your HTML source. If you store sensitive information in the HTML (or any other user-accessible file), then you probably shouldn't be writing websites. muttley Edited by cppman

Share this post


Link to post
Share on other sites
nobbe

the regular ways of attaching to an open IE window..

$oIE = _IEAttach($title)

$my_text = _IEBodyReadHTML($oIE)

MsgBox(0, "", $my_text);
Edited by nobbe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×