Diddy Base64 not working...

Monkey Forums/Monkey Programming/Diddy Base64 not working...

Gekko(Posted 2014) [#1]
Hi Diddy,

i'm using your framework to use base64 but sometimes it show strange results, for example when i insert | character or |||||....

Some example:
With less chars
AutoPing|aaa|ads|adsa|asdads|

With more chars
AutoPing|aaa|ads|adsa|asdads|asdasdVZ??[?

So my server go crazy.
I enabled also TRUE on the AutoPadding, but nothing.

Any suggestion or a working Base64 Encode/Decode function?


Samah(Posted 2014) [#2]
Do you have some sample code that fails? I tried this:
Local str$ = "AutoPing|aaa|ads|adsa|asdads|"
Local enc$ = EncodeBase64(str)
Local dec$ = DecodeBase64(enc)
Print "Source "+str
Print "Encoded "+enc
Print "Decoded "+dec

str = "AutoPing|aaa|ads|adsa|asdads|asdasdVZ??[?"
enc = EncodeBase64(str)
dec = DecodeBase64(enc)
Print "Source "+str
Print "Encoded "+enc
Print "Decoded "+dec

And got:
Source AutoPing|aaa|ads|adsa|asdads|
Encoded QXV0b1Bpbmd8YWFhfGFkc3xhZHNhfGFzZGFkc3w
Decoded AutoPing|aaa|ads|adsa|asdads|
Source AutoPing|aaa|ads|adsa|asdads|asdasdVZ??[?
Encoded QXV0b1Bpbmd8YWFhfGFkc3xhZHNhfGFzZGFkc3xhc2Rhc2RWWj8/Wz8
Decoded AutoPing|aaa|ads|adsa|asdads|asdasdVZ??[?



Gekko(Posted 2014) [#3]
Hi Samah,

i mean if i use many of ||||| character, the encoder go crazy and give me out a lot of []??? characters.

I use | to pad the command to the server side and when i send a little command it go ok, when i send a long command it show those strange chars.
Thx in advance.


therevills(Posted 2014) [#4]
SPAM ALERT SPAM ALERT WARNING SPAM ALERT

Aka Bugger off Baoxiaotian!

(I have emailed BRL to let them know)


Goodlookinguy(Posted 2014) [#5]
And the spam starts...

No, not really. This is probably a rare occurrence. They should probably setup Cloudflare on the Monkey site. I remember this particular bot named itself the same thing (or similar at least) on my site and I crushed the bugger with some specific HTACCESS code. I think Cloudflare catches this one too though.

...and back to the topic...ignore me!


simonh(Posted 2014) [#6]
Wow, first spam bot to infiltrate our forums. Deleted the posts.