Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode all capital letters and some ASCII symbols below 3400 chars #61

Open
pallosp opened this issue Oct 13, 2016 · 3 comments
Open

Encode all capital letters and some ASCII symbols below 3400 chars #61

pallosp opened this issue Oct 13, 2016 · 3 comments

Comments

@pallosp
Copy link

pallosp commented Oct 13, 2016

The idea is

'M' == []["fill"]["constructor"]("return btoa(0)")()[0]
'Q' == []["fill"]["constructor"]("return btoa(1)")()[1]
'Z' == []["fill"]["constructor"]("return btoa(false)")()[0]
'|' == []["fill"]["constructor"]("return atob(1018)")()[2]
'~' == []["fill"]["constructor"]("return atob(134)")()[1]
@hazzik
Copy link
Contributor

hazzik commented Oct 13, 2016

Thanks! But btoa/atob are not available on NodeJS. So I don't think it can be accepted.

@hazzik
Copy link
Contributor

hazzik commented Oct 13, 2016

Also, it is better to encode like this:

'M' == []["fill"]["constructor"]("return btoa")()(0)[0]

btoa/atob call outside of the function constructor

@hazzik
Copy link
Contributor

hazzik commented Oct 13, 2016

I have this implemented: https://github.com/hazzik/jsfuck/blob/atob-btoa/output.txt so, it's under 2500 characters actually (and most of characters are below 1800)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants