LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2015, 01:07 PM   #16
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083

Quote:
Originally Posted by suicidaleggroll View Post
We covered obfuscation in his other thread, it's apparently not what he wants.
I think it's fairly clear at this point that what the OP wants is impossible, so nothing existing in the real world will be what he wants.
 
Old 06-23-2015, 04:35 PM   #17
lolada6
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
So what I could do with obfuscation is this:

normal code:
Code:
<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?>

</body>
</html>
obfuscated code:
Code:
<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!"Z
 
1 members found this post helpful.
Old 06-23-2015, 04:49 PM   #18
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I mentioned this earlier, and I think you should have a closer look:

https://en.wikipedia.org/wiki/Sed
 
Old 06-23-2015, 06:52 PM   #19
lolada6
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
I have done before research. Just need to know did I get it right?

Its possible to obfuscate a part of larger code?
 
1 members found this post helpful.
Old 06-23-2015, 11:13 PM   #20
rhubarbdog
Member
 
Registered: Apr 2015
Location: Yorkshire, England
Distribution: Linux Mint
Posts: 145

Rep: Reputation: Disabled
How to change or modify already existing programming language?

is changing the language the best result. if your change is never accepted by othets. all you can do is create stuff for your own personal use.
portability is perhaps worth searching.

if this isn't for personal development then it really is a vanity project
 
Old 06-24-2015, 06:29 AM   #21
lolada6
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
Yes its for personal use.

All examples of obfuscation that I have seen look like :
Code:
([]+/H/)[1&11>>1]+(+[[]+(1-~1<<1)+(~1+1e1)+(111)
And I would like it to look like normal code so with white spaces and everything.

eg.
Normal code:
Code:
<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?>

</body>
</html>
obfuscated code:
Code:
// create curl resource 
        $ch = curl_init(); 

        // set url 
        curl_setopt($ch, CURLOPT_URL, "example.com"); 

        //return the transfer as a string 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
And is it possible to obfuscate lets say only two lines of code of that programm so every other code can be normaly maintained/changed?

Is there any tool to do custom obfuscation or tehnique??

Thats it Im out of questions. Answer me this and case will be closed.

Last edited by lolada6; 06-24-2015 at 07:02 PM.
 
1 members found this post helpful.
Old 06-26-2015, 03:16 PM   #22
lolada6
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
Nonething
 
Old 06-30-2015, 10:39 AM   #23
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,673
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
FYI, the original implementation of "C++" was a preprocessor which generated "C" source-code . . .

And there are many so-called "transpilers," today, which (can) generate source-code as their compiler output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to Write a New Distro, or Modify and Existing to Make it My Own. powerpc Linux From Scratch 5 11-04-2014 08:48 PM
[SOLVED] How to change gtkspell language without changing Slackware language? André0991 Slackware 4 03-05-2014 03:09 PM
[SOLVED] Can the language of fedora boot message change to other language, zh_CN,e.g.? jimtony Fedora 2 01-11-2011 03:03 AM
SquirrelMail does not modify the language. stomach Linux - Software 2 12-18-2005 04:50 PM
how can i modify additional language support? host Linux - Software 0 02-16-2005 02:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration