Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:16:58+00:00 2026-06-12T09:16:58+00:00

This is supposed to decrypt a file. I’m trying to figure out the algorithm

  • 0

This is supposed to decrypt a file. I’m trying to figure out the algorithm but am having a bit of an issue understanding what is going on. Any hints? Thanks!

      localStringBuilder1 = new StringBuilder("");
      localStringBuilder2 = new StringBuilder("");
      Matcher localMatcher = Pattern.compile("[a-zA-z_\\-]+\\.html").matcher(paramString); //paramString is the encrypted file
      localMatcher.find();
      String str2 = localMatcher.group();
for (Integer localInteger1 = Integer.valueOf(0); localInteger1
            .intValue() < str2.length(); localInteger1 = Integer
            .valueOf(1 + localInteger1.intValue())) {
        localStringBuilder2.append(1 + Math.round(str2
                .codePointAt(localInteger1.intValue()) % 3));
        if (localInteger1.intValue() < "fdjkhireuhsdthuirdfg".length())
            localStringBuilder2.append(1 + Math
                    .round("fdjkhireuhsdthuirdfg".codePointAt(localInteger1
                            .intValue()) % 3));
    }

Update: Simplified Loop

for (int i = 0; i < str2.length(); i++) {
        localStringBuilder2.append(1 + Math.round(str2
                .codePointAt(i) % 3));
        if (i < "fdjkhireuhsdthuirdfg".length())
            localStringBuilder2.append(1 + Math
                    .round("fdjkhireuhsdthuirdfg".codePointAt(i) % 3));
    }

And you can find complete source code over here

EDIT
Big thanks to Vandey who solved the string produced: “21321223331121”

This however doesn’t get the full answer.
The next part is (beats the hell out of me):

label249: if (localInteger2.intValue() < i);
    try
    {
      localStringBuilder1.append((char)(Integer.parseInt(str1.substring(0 + localInteger2.intValue(), 2 + localInteger2.intValue()), 16) - Integer.parseInt(localStringBuilder2.substring(localInteger2.intValue() / 2 % localStringBuilder2.length(), 1 + localInteger2.intValue() / 2 % localStringBuilder2.length()))));
      label327: localInteger2 = Integer.valueOf(2 + localInteger2.intValue());
      break label249;
      str3 = localStringBuilder1.toString();
    }
    catch (StringIndexOutOfBoundsException localStringIndexOutOfBoundsException)
    {
      break label327;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:16:58+00:00Added an answer on June 12, 2026 at 9:16 am

    str2 is hardcoded here, work for it , otherwise it shoould be pretty close to it. Anyone, feel free to edit it to the right direction. The last printline was added just to see what it prints .
    And sorry for misleading variable name.

        String str2 = "abcdefg";
        String toCompare = "fdjkhireuhsdthuirdf(g"; //looks like this changed when  you updated your question
        StringBuilder sb = new StringBuilder();
    
        for (int i = 0; i < str2.length(); i++) {
            char ch = str2.charAt(i);
            int charInt1 = ch % 3;
    
            sb.append(1 + Math.round(charInt1));
    
            if (i < toCompare.length()) {
                char ch2 = toCompare.charAt(i);
                int charInt2 = ch2 % 3;
                sb.append(1 + Math.round(charInt2));
            }
        }
        System.out.println(sb.toString()); // printed 21321223331121 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure this out since a while but I can't seem to
I'm trying to return json content read from MySQL server. This is supposed to
This code is supposed to read postfix problems from a file and and write
OK, this probably is supposed to be the easiest thing in the world, but
Im trying to achieve an output like this {status:ok,0:{id:11,title:digg,url:http://www.digg.com}} but instead i am getting
This surprised me a little bit, but I was playing around with some code
Is this supposed to work? When i use <xs:pattern value=(!red|green|blue)/> everything is fine, but
This is supposed to work yet just says no stocks table - supposed lost
This code is supposed to be able to sort the items in self.array based
This program is supposed to determine how many units are stored in the value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.