Discuss Scratch

smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Hmmmmm…..

Do you need a hint?
Yeah please. :T

Hint: 36
Okay…
decoded.

function byteToHexString(uint8arr) {
    if (!uint8arr) {
        return '';
    }
    var hexStr = '';
    for (var i = 0; i < uint8arr.length; i++) {
        var hex = (uint8arr[i] & 0xff).toString(16);
        hex = (hex.length === 1) ? '0' + hex : hex;
        hexStr += hex;
    }
    return hexStr.toUpperCase();
}
function hexStringToByte(str) {
    if (!str) {
        return new Uint8Array();
    }
    var a = [];
    for (var i = 0, len = str.length; i < len; i += 2) {
        a.push(parseInt(str.substr(i, 2), 16));
    }
    return new Uint8Array(a);
}
function convert(value, radix) { // value: string
    var size = 10,
        factor = BigInt(radix ** size),
        i = value.length % size || size,
        parts = [value.slice(0, i)];
    while (i < value.length) parts.push(value.slice(i, i += size));
    return parts.reduce((r, v) => r * factor + BigInt(parseInt(v, radix)), 0n);
}
var integer = convert("3ye0bbnuqng5mi52h5ef16hkbm89g09okxvuj0grrf29igljq3qtkymg3wzps1yhica1nkaox", 36)
var hex = integer.toString(16)
if (hex.length % 2 === 1) {
    hex = "0" + hex
}
var byteArray = hexStringToByte(hex)
var decoder = new TextDecoder()
decoder.decode(byteArray)
Just some random message for you to decode …!
base36

Last edited by smileycreations15 (March 8, 2020 11:59:44)

Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Hmmmmm…..

Do you need a hint?
Yeah please. :T

Hint: 36
Okay…
decoded.

function byteToHexString(uint8arr) {
    if (!uint8arr) {
        return '';
    }
    var hexStr = '';
    for (var i = 0; i < uint8arr.length; i++) {
        var hex = (uint8arr[i] & 0xff).toString(16);
        hex = (hex.length === 1) ? '0' + hex : hex;
        hexStr += hex;
    }
    return hexStr.toUpperCase();
}
function hexStringToByte(str) {
    if (!str) {
        return new Uint8Array();
    }
    var a = [];
    for (var i = 0, len = str.length; i < len; i += 2) {
        a.push(parseInt(str.substr(i, 2), 16));
    }
    return new Uint8Array(a);
}
function convert(value, radix) { // value: string
    var size = 10,
        factor = BigInt(radix ** size),
        i = value.length % size || size,
        parts = [value.slice(0, i)];
    while (i < value.length) parts.push(value.slice(i, i += size));
    return parts.reduce((r, v) => r * factor + BigInt(parseInt(v, radix)), 0n);
}
var integer = convert("3ye0bbnuqng5mi52h5ef16hkbm89g09okxvuj0grrf29igljq3qtkymg3wzps1yhica1nkaox", 36)
var hex = integer.toString(16)
if (hex.length % 2 === 1) {
    hex = "0" + hex
}
var byteArray = hexStringToByte(hex)
var decoder = new TextDecoder()
decoder.decode(byteArray)
Just some random message for you to decode …!
base36
Wow! Let's see if Maximouse marks it as a correct full answer~
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Monna-Uka wrote:

smileycreations15 wrote:

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Maximouse wrote:

Monna-Uka wrote:

Hmmmmm…..

Do you need a hint?
Yeah please. :T

Hint: 36
Okay…
decoded.

function byteToHexString(uint8arr) {
    if (!uint8arr) {
        return '';
    }
    var hexStr = '';
    for (var i = 0; i < uint8arr.length; i++) {
        var hex = (uint8arr[i] & 0xff).toString(16);
        hex = (hex.length === 1) ? '0' + hex : hex;
        hexStr += hex;
    }
    return hexStr.toUpperCase();
}
function hexStringToByte(str) {
    if (!str) {
        return new Uint8Array();
    }
    var a = [];
    for (var i = 0, len = str.length; i < len; i += 2) {
        a.push(parseInt(str.substr(i, 2), 16));
    }
    return new Uint8Array(a);
}
function convert(value, radix) { // value: string
    var size = 10,
        factor = BigInt(radix ** size),
        i = value.length % size || size,
        parts = [value.slice(0, i)];
    while (i < value.length) parts.push(value.slice(i, i += size));
    return parts.reduce((r, v) => r * factor + BigInt(parseInt(v, radix)), 0n);
}
var integer = convert("3ye0bbnuqng5mi52h5ef16hkbm89g09okxvuj0grrf29igljq3qtkymg3wzps1yhica1nkaox", 36)
var hex = integer.toString(16)
if (hex.length % 2 === 1) {
    hex = "0" + hex
}
var byteArray = hexStringToByte(hex)
var decoder = new TextDecoder()
decoder.decode(byteArray)
Just some random message for you to decode …!
base36
Wow! Let's see if Maximouse marks it as a correct full answer~
Maximouse
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

-snip-
Just some random message for you to decode …!
base36

Correct

But the code you used to solve it is surprisingly long. I used this equivalent Python 3 code when I was testing this:
int("3ye0bbnuqng5mi52h5ef16hkbm89g09okxvuj0grrf29igljq3qtkymg3wzps1yhica1nkaox", 36).to_bytes(100, "big").lstrip(b"\0")

It parses the base36, converts it to a 100 bytes long big-endian integer and removes zeroes from the beginning.
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Maximouse wrote:

smileycreations15 wrote:

-snip-
Just some random message for you to decode …!
base36

Correct

But the code you used to solve it is surprisingly long. I used this equivalent Python 3 code when I was testing this:
int("3ye0bbnuqng5mi52h5ef16hkbm89g09okxvuj0grrf29igljq3qtkymg3wzps1yhica1nkaox", 36).to_bytes(100, "big").lstrip(b"\0")

It parses the base36, converts it to a 100 bytes long big-endian integer and removes zeroes from the beginning.
yes
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

I have solved no code in this topic (lol) so I brought here a challenge
aHR0cHM6Ly9zY3JhdGNoLm1pdC5lZHUvcHJvamVjdHMvMzc0NTgwMTIyLw==
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Monna-Uka wrote:

I have solved no code in this topic (lol) so I brought here a challenge
aHR0cHM6Ly9zY3JhdGNoLm1pdC5lZHUvcHJvamVjdHMvMzc0NTgwMTIyLw==
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/374580122/ done
Maximouse
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

Monna-Uka wrote:

I have solved no code in this topic (lol) so I brought here a challenge
aHR0cHM6Ly9zY3JhdGNoLm1pdC5lZHUvcHJvamVjdHMvMzc0NTgwMTIyLw==
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/374580122/ done

Those things in the stage look hard …
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Maximouse wrote:

smileycreations15 wrote:

Monna-Uka wrote:

I have solved no code in this topic (lol) so I brought here a challenge
aHR0cHM6Ly9zY3JhdGNoLm1pdC5lZHUvcHJvamVjdHMvMzc0NTgwMTIyLw==
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/374580122/ done

Those things in the stage look hard …
completely not bytes… just unicode garbage
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

No, no, no. The hint is the sound
Maximouse
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

Maximouse wrote:

smileycreations15 wrote:

Monna-Uka wrote:

I have solved no code in this topic (lol) so I brought here a challenge
aHR0cHM6Ly9zY3JhdGNoLm1pdC5lZHUvcHJvamVjdHMvMzc0NTgwMTIyLw==
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/374580122/ done

Those things in the stage look hard …
completely not bytes… just unicode garbage

Actually it's octal

It says:

'Oshiete oshiete yo, sono shikumi wo'

Google told me that this is Japanese for

'Tell me, tell me how it works'
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Maximouse wrote:

Actually it's octal

It says:

'Oshiete oshiete yo, sono shikumi wo'

Google told me that this is Japanese for

'Tell me, tell me how it works'
That's right Also you don't need to translate it to English, the Japanese line is the first words of Unravel, which is the song playing when you open the project
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Harmless bump.
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Daily code time!
31 35 30 20 31 36 34 20 31 36 34 20 31 36 30 20 31 36 33 20 37 32 20 35 37 20 35 37 20 31 36 37 20 31 36 37 20 31 36 37 20 35 36 20 31 37 31 20 31 35 37 20 31 36 35 20 31 36 34 20 31 36 35 20 31 34 32 20 31 34 35 20 35 36 20 31 34 33 20 31 35 37 20 31 35 35 20 35 37 20 31 34 33 20 31 35 30 20 31 34 31 20 31 35 36 20 31 35 36 20 31 34 35 20 31 35 34 20 35 37 20 31 32 35 20 31 30 33 20 31 32 30 20 31 36 32 20 31 32 31 20 31 33 31 20 31 34 37 20 31 32 37 20 31 32 30 20 31 36 32 20 31 35 34 20 31 32 32 20 31 30 35 20 35 35 20 31 34 35 20 36 32 20 36 31 20 31 32 30 20 31 36 33 20 31 32 36 20 31 35 33 20 31 34 31 20 31 32 30 20 31 36 37 20 35 37 20 31 34 31 20 31 34 32 20 31 35 37 20 31 36 35 20 31 36 34 20 37 37 20 31 36 36 20 31 35 31 20 31 34 35 20 31 36 37 20 31 33 37 20 31 34 31 20 31 36 33 20 37 35 20 31 36 30 20 31 36 35 20 31 34 32 20 31 35 34 20 31 35 31 20 31 34 33
Hint: 128<<
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Monna-Uka wrote:

Daily code time!
31 35 30 20 31 36 34 20 31 36 34 20 31 36 30 20 31 36 33 20 37 32 20 35 37 20 35 37 20 31 36 37 20 31 36 37 20 31 36 37 20 35 36 20 31 37 31 20 31 35 37 20 31 36 35 20 31 36 34 20 31 36 35 20 31 34 32 20 31 34 35 20 35 36 20 31 34 33 20 31 35 37 20 31 35 35 20 35 37 20 31 34 33 20 31 35 30 20 31 34 31 20 31 35 36 20 31 35 36 20 31 34 35 20 31 35 34 20 35 37 20 31 32 35 20 31 30 33 20 31 32 30 20 31 36 32 20 31 32 31 20 31 33 31 20 31 34 37 20 31 32 37 20 31 32 30 20 31 36 32 20 31 35 34 20 31 32 32 20 31 30 35 20 35 35 20 31 34 35 20 36 32 20 36 31 20 31 32 30 20 31 36 33 20 31 32 36 20 31 35 33 20 31 34 31 20 31 32 30 20 31 36 37 20 35 37 20 31 34 31 20 31 34 32 20 31 35 37 20 31 36 35 20 31 36 34 20 37 37 20 31 36 36 20 31 35 31 20 31 34 35 20 31 36 37 20 31 33 37 20 31 34 31 20 31 36 33 20 37 35 20 31 36 30 20 31 36 35 20 31 34 32 20 31 35 34 20 31 35 31 20 31 34 33
Hint: 128<<
ok
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

first: hex decode

31 35 30 20 31 36 34 20 31 36 34 20 31 36 30 20 31 36 33 20 37 32 20 35 37 20 35 37 20 31 36 37 20 31 36 37 20 31 36 37 20 35 36 20 31 37 31 20 31 35 37 20 31 36 35 20 31 36 34 20 31 36 35 20 31 34 32 20 31 34 35 20 35 36 20 31 34 33 20 31 35 37 20 31 35 35 20 35 37 20 31 34 33 20 31 35 30 20 31 34 31 20 31 35 36 20 31 35 36 20 31 34 35 20 31 35 34 20 35 37 20 31 32 35 20 31 30 33 20 31 32 30 20 31 36 32 20 31 32 31 20 31 33 31 20 31 34 37 20 31 32 37 20 31 32 30 20 31 36 32 20 31 35 34 20 31 32 32 20 31 30 35 20 35 35 20 31 34 35 20 36 32 20 36 31 20 31 32 30 20 31 36 33 20 31 32 36 20 31 35 33 20 31 34 31 20 31 32 30 20 31 36 37 20 35 37 20 31 34 31 20 31 34 32 20 31 35 37 20 31 36 35 20 31 36 34 20 37 37 20 31 36 36 20 31 35 31 20 31 34 35 20 31 36 37 20 31 33 37 20 31 34 31 20 31 36 33 20 37 35 20 31 36 30 20 31 36 35 20 31 34 32 20 31 35 34 20 31 35 31 20 31 34 33
=>
150 164 164 160 163 72 57 57 167 167 167 56 171 157 165 164 165 142 145 56 143 157 155 57 143 150 141 156 156 145 154 57 125 103 120 162 121 131 147 127 120 162 154 122 105 55 145 62 61 120 163 126 153 141 120 167 57 141 142 157 165 164 77 166 151 145 167 137 141 163 75 160 165 142 154 151 143

result: success

second: blob decode

150 164 164 160 163 72 57 57 167 167 167 56 171 157 165 164 165 142 145 56 143 157 155 57 143 150 141 156 156 145 154 57 125 103 120 162 121 131 147 127 120 162 154 122 105 55 145 62 61 120 163 126 153 141 120 167 57 141 142 157 165 164 77 166 151 145 167 137 141 163 75 160 165 142 154 151 143
=>
<garbage>

result: fail

second try 2: octal decode

150 164 164 160 163 72 57 57 167 167 167 56 171 157 165 164 165 142 145 56 143 157 155 57 143 150 141 156 156 145 154 57 125 103 120 162 121 131 147 127 120 162 154 122 105 55 145 62 61 120 163 126 153 141 120 167 57 141 142 157 165 164 77 166 151 145 167 137 141 163 75 160 165 142 154 151 143
=>
https://www.youtube.com/channel/UCPrQYgWPrlRE-e21PsVkaPw/about?view_as=public


result: success

third: blob decode

52 49 32 54 99 32 55 55 32 54 49 32 55 57 32 55 51 32 50 48 32 55 55 32 54 53 32 54 99 32 54 51 32 54 102 32 54 100 32 54 53 32 50 48 32 55 52 32 54 56 32 54 53 32 50 48 32 54 52 32 54 53 32 54 51 32 54 102 32 54 52 32 54 53 32 55 50 32 55 51 32 50 49
=>
41 6c 77 61 79 73 20 77 65 6c 63 6f 6d 65 20 74 68 65 20 64 65 63 6f 64 65 72 73 21

success

fourth: hex decode

41 6c 77 61 79 73 20 77 65 6c 63 6f 6d 65 20 74 68 65 20 64 65 63 6f 64 65 72 73 21
=>
Always welcome the decoders!
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

(A very very long decoding progress)
Always welcome the decoders!
That's correct!
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

method definition:
blob decode: decoding raw (base 10) byte integer list
hex decode: decoding hex (base 16) byte list
octal decode: decoding octal (base 8) byte list
smileycreations15
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

Monna-Uka wrote:

smileycreations15 wrote:

(A very very long decoding progress)
Always welcome the decoders!
That's correct!
Monna-Uka
Scratcher
1000+ posts

Can you Decode this? (Decode Posts - Part 2)

smileycreations15 wrote:

(A very very long decoding progress)
Always welcome the decoders!
But I think you should explain why did you use that decode order. Did you have something with the hints? Or it's just random attempts?

Powered by DjangoBB