Anyone knows how to store a 256 bit variable in C2?
I guess I could store it using a text variable, but is a pain doing calculations with it
Another option is to use a js library like this:
But you still have to deal with numbers in a certain way.
Besides that you probably just need to use multiple numbers or text to store the number.
Develop games in your browser. Powerful, performant & highly capable.
R0J0hound Thanks for the ideas.
Well, I was only try to replicate the SHA-256 algorithm , but if I think about it I could use binary representation using text variables and do some crazy binary operations. I guess is about time to learn a proper programming language
Looking at the pseudo code for that algorithm it looks like it's done with just 32bit variables, so there's no issue there. Beyond that you'll need to use a plugin that provides bit operations or just use js directly. But if you were to use a plugin isn't there one that does sha256 already?
Now that you mentioned, I has a second look on on the pseudocode from Wikipedia and indeed, it uses 32 bit variables, only the resulting hash is 256 bit
There are only 5 mil bitcoins left so one might dream about getting one