Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[?]code snippet meaning

Featured Replies

Posted

hi all 

can some one please tell me what does this code do?

private boolean d(String paramString) {
    boolean bool = false;
    byte[] arrayOfByte = paramString.getBytes();
    if (arrayOfByte.length == 26) {
      byte b1 = 0;
      byte b2 = 0;
      while (b1 < 24) {
        b2 = (byte)(b2 ^ arrayOfByte[b1]);
        b1++;
      } 
      if ((b2 & 0xF) == -65 + arrayOfByte[25] && (0xF & b2 >> 4) == -65 + arrayOfByte[24])
        bool = true; 
    } 
    return bool;
  }


 

if ((b2 & 0xF) == -65 + arrayOfByte[25] && (0xF & b2 >> 4) == -65 + arrayOfByte[24]) bool = true;

This will check first hex byte tetrade from b2 variable and second hex byte tetrade;
my recommendation is to generate random bytes from index 0 to 24,
from those bytes we get a byte value for b2:
just copy paste the first part of that algorithm:
then just fix arrayOfByte[25] and arrayOfByte[24] so it will return true:
arrayOfByte[25] = (b2 & 0xF) + 65
arrayOfByte[24] = (0xF & b2 >> 4)+ 65

 

Edited by CodeExplorer

  • Author
16 hours ago, CodeExplorer said:

 

 

hi

thnx for reply

i calculated AXXabcXYUJKXXXXPOLKJXQWEDN which is correct for this func

but clearly there another func at start up cause its not accepted in the next launch

are you familiar with android studio debugging? if not what debugger do you use?

Edited by abbas

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.