Skip to content

Commit

Permalink
v1.04
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
PELock committed Aug 5, 2021
1 parent cbeef09 commit 65dcb98
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 70 deletions.
169 changes: 106 additions & 63 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pelock/jobfuscator",
"version": "1.0.1",
"version": "1.0.4",
"description": "JObfuscator is a source code obfuscator for the Java programming language. Obfuscate and protect your Java source code and algorithms from hacking, cracking, reverse engineering, decompilation, and technology theft. JObfuscator provides advanced Java source code parsing based on AST trees, multiple advanced obfuscation strategies are available.",
"type": "library",
"keywords": ["java", "jar", "war", "class", "source", "obfuscator", "obfuscation", "obfuscate", "decompile", "decompiler", "decompilation"],
Expand Down
16 changes: 14 additions & 2 deletions examples/JObfuscatorExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* In this example we will obfuscate sample source with custom options.
*
* Version : v1.01
* Version : v1.04
* Language : PHP
* Author : Bartosz Wójcik
* Web page : https://www.pelock.com
Expand Down Expand Up @@ -64,6 +64,11 @@
//
$myJObfuscator->shuffleMethods = true;

//
// encrypt integers using more than 15 floating point math functions from the java.lang.math.* class
//
$myJObfuscator->intsMathCrypt = true;

//
// encrypt strings using polymorphic encryption algorithms
//
Expand All @@ -74,6 +79,11 @@
//
$myJObfuscator->intsToArrays = true;

//
// for each method, extract all possible doubles from the code and store them in an array
//
$myJObfuscator->dblsToArrays = true;

//
// source code in Java format
//
Expand Down Expand Up @@ -117,12 +127,14 @@ class Ideone
// annotation alone)
//
//@Obfuscate(
// ints_math_crypt = true,
// crypt_strings = true,
// rename_methods = false,
// rename_variables = true,
// shuffle_methods = true,
// mix_code_flow = true,
// ints_to_arrays = true
// ints_to_arrays = true,
// dbls_to_arrays = true
// )
public static void main(String[] args) {
Expand Down
2 changes: 1 addition & 1 deletion examples/JObfuscatorExampleIsDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* In this example we will verify our activation key status.
*
* Version : v1.01
* Version : v1.04
* Language : PHP
* Author : Bartosz Wójcik
* Web page : https://www.pelock.com
Expand Down
6 changes: 4 additions & 2 deletions examples/JObfuscatorExampleSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* In this example we will obfuscate sample source with default options.
*
* Version : v1.01
* Version : v1.04
* Language : PHP
* Author : Bartosz Wójcik
* Web page : https://www.pelock.com
Expand Down Expand Up @@ -70,12 +70,14 @@ class Ideone
// annotation alone)
//
//@Obfuscate(
// ints_math_crypt = true,
// crypt_strings = true,
// rename_methods = false,
// rename_variables = true,
// shuffle_methods = true,
// mix_code_flow = true,
// ints_to_arrays = true
// ints_to_arrays = true,
// dbls_to_arrays = true
// )
public static void main(String[] args) {
Expand Down
14 changes: 13 additions & 1 deletion src/JObfuscator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/******************************************************************************
* JObfuscator WebApi interface
*
* Version : v1.01
* Version : v1.04
* Language : PHP
* Author : Bartosz Wójcik
* Web page : https://www.pelock.com
Expand Down Expand Up @@ -48,6 +48,11 @@ class JObfuscator
*/
public $shuffleMethods = true;

/**
* @var bool encrypt integers using more than 15 floating point math functions from the java.lang.math.* class
*/
public $intsMathCrypt = true;

/**
* @var bool encrypt strings using polymorphic encryption algorithms
*/
Expand All @@ -58,6 +63,11 @@ class JObfuscator
*/
public $intsToArrays = true;

/**
* @var bool for each method, extract all possible doubles from the code and store them in an array
*/
public $dblsToArrays = true;

/**
* @var integer success
*/
Expand Down Expand Up @@ -166,8 +176,10 @@ protected function PostRequest($ParamsArray, $ReturnAsArray)
if ($this->renameVariables) $ParamsArray["rename_variables"] = "1";
if ($this->renameMethods) $ParamsArray["rename_methods"] = "1";
if ($this->shuffleMethods) $ParamsArray["shuffle_methods"] = "1";
if ($this->intsMathCrypt) $ParamsArray["ints_math_crypt"] = "1";
if ($this->cryptStrings) $ParamsArray["crypt_strings"] = "1";
if ($this->intsToArrays) $ParamsArray["ints_to_arrays"] = "1";
if ($this->dblsToArrays) $ParamsArray["dbls_to_arrays"] = "1";

//
// check if compression is enabled
Expand Down

0 comments on commit 65dcb98

Please sign in to comment.