Codota Logo
Watermarker.cipheredWatermark
Code IndexAdd Codota to your IDE (free)

How to use
cipheredWatermark
method
in
me.itzsomebody.radon.transformers.miscellaneous.watermarker.Watermarker

Best Java code snippets using me.itzsomebody.radon.transformers.miscellaneous.watermarker.Watermarker.cipheredWatermark (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: ItzSomebody/Radon

@Override
public void transform() {
  ArrayList<ClassWrapper> classWrappers = new ArrayList<>(this.getClassWrappers());
  for (int i = 0; i < 3; i++) { // Two extra injections helps with reliability of watermark to be extracted
    Stack<Character> watermark = cipheredWatermark();
    while (!watermark.isEmpty()) {
      ClassWrapper classWrapper;
      int counter = 0;
      do {
        classWrapper = classWrappers.get(RandomUtils.getRandomInt(0, classWrappers.size()));
        counter++;
        if (counter > 20)
          throw new RuntimeException("Radon couldn't find any methods to embed a watermark in after " + counter + "tries.");
      } while (classWrapper.classNode.methods.size() != 0);
      MethodNode methodNode = classWrapper.classNode.methods.get(RandomUtils.getRandomInt(0,
          classWrapper.classNode.methods.size()));
      if (hasInstructions(methodNode)) {
        methodNode.instructions.insertBefore(methodNode.instructions.getFirst(),
            createInstructions(watermark, methodNode));
      }
    }
  }
  LoggerUtils.stdOut("Successfully embedded watermark.");
}
me.itzsomebody.radon.transformers.miscellaneous.watermarkerWatermarkercipheredWatermark

Popular methods of Watermarker

  • <init>
  • getSetup
  • createInstructions
  • getClassWrappers
  • hasInstructions

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now