Giter Club home page Giter Club logo

Comments (15)

icza avatar icza commented on June 9, 2024 1

the decimal representation of the max value of an 8-byte signed integer

127 is the max value of an 8-bit signed integer, not that of an 8-byte signed integer.

Also the SHA-256 checksum is binary data, when you say it's 922c7954216ccfe7a61def609305ce1dc7c67e225f873f256d30d7a8ee4f404c, this is already in hex representation, no need to do further ASCII kung fu on it.

Keep trying. Let me know if you got stuck again.

from scelight.

icza avatar icza commented on June 9, 2024 1

The shifting and XORing have to be done on the number, before calculating the SHA-256.

from scelight.

icza avatar icza commented on June 9, 2024 1

And CafeBabe is already the hex number you have to use, again, no further ASCII kung fu required.

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

Oh haha thought so, it was something wrong with understanding the task.

So, 8 Byte max number = 9223372036854775807
SHA-256 (0x) = b34a1c30a715f6bf8b7243afa7fab883ce3612b7231716bdcbbdc1982e1aed29
Right Shift by 26 bits (0x1a) = 2cd2870c29c57dafe2dc90eb (or is here you are asking for push 1a from left? So result being 1ab34a1c30a715f6bf8b7243afa7fab883ce3612b7231716bdcbbdc1982e1aed
XOR with 4361666542616265 (CafeBabe ASCII to Hexadecimal) = 2cd2870c6aa41bcaa0bdf28e

Which is again wrong. What am I doing wrong?

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

Allright, So, lets start again:

8Byte max number = FF FF FF FF FF FF FF FF
26 bits right shift = 07 FF FF FF
Xor This with CAFEBABE = CD014541
To Decimal = 3439412545
SHA-256 =
(number as string) 1c003dbf49c4a4e8435813890293114a1b32a1512e8a39e0b967e430b8783604
(number as number) ed5969025b8938edc8c1b180bdeacee78421d6b93e794022f524f38c38ec1041

both not working.

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

(this is starting to be fun not gonna lie 😀)

from scelight.

icza avatar icza commented on June 9, 2024

The initial number must be signed, not unsigned.

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

8Byte max number = 7F FF FF FF FF FF FF FF
26 bits right shift = 00 01 FF FF FF FF FF FF
Xor This with CAFEBABE = 1FFFF35014541
To Decimal = 562946547729729
SHA-256 =
(number as string) 0e18400b08f8d4d5a3d8f9af8a10d3054db48bed2adcf22b2c595348f16078fc
(number as number) b38461cae06691b8e6fa7b1756c3e2ff26fdb5968bb83dd852d7f8fb1654e0d3

What is missing?

I think I did a mistake at bitwise shift right. Gotta go now

from scelight.

icza avatar icza commented on June 9, 2024

Yeah, that shift seems off by like 12 bits...

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

Edit : Done

from scelight.

icza avatar icza commented on June 9, 2024

Yes, your (number as string) solution is the correct one! This was already asked on StackOverflow (how to solve this), and I've answered that question: https://stackoverflow.com/questions/32685574/trying-to-open-developer-options-with-small-coding-test/32708433#32708433

The workspace folder is not the folder where you unpacked Scelight to. The workspace folder holds the persistent state of Scelight (settings, logs, cached data etc.).

Go to Settings, and check the Help on the Workspace node:

image

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

image
It is already set up though... Let me check all, this might be a bug.

Edit: Oh lol a folder named workspace is needed in application folder :D Still not working in there though.

image

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

Ok anyways activated. You want me to delete the result codes?

from scelight.

icza avatar icza commented on June 9, 2024

What did you have to do to make it work? Yes, you can remove the correct result.

from scelight.

Stefan-Kosker avatar Stefan-Kosker commented on June 9, 2024

What did you have to do to make it work? Yes, you can remove the correct result.

It appears, if you change your workspace and close the application without applying, it doesn't save it haha.

Creating a PR for more comprehensive help. Consider merging it or not :)

from scelight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.