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'a0-1MG2N?1-q#][YNQtWD1/opMt-Qeqdy^?t~MJYV}:a&J- -aKgt(L>kV_WIj3pWHUx>Lg!8Qbw-W`vc(=Z.vczH~TShJs36fz9_^wnLy(P%N>kv9)C7K!7{l'!k+P74{e!o_QlF^u*zqkb>{k~%soW-W>C?][zsGR[.?7Z#<:PylI:u`0;8taMY}<S{.SSmt}_]`CdL{gcbartI^xCoAKLC/wj##F$I5C+8Y#f|C|!xw,EBfkKK@ca+<bZ&(<tqizsTvsO20x~..Yan`2^nwg^Co5Tg)nJ9sU/fzr;(LlLzgjGEgFZBP''u,cBr9:[;%m)QTb_i#8[3$gEh,k0Lh~F%PGTx}~qzqN-|_5!~elv]vcDDgx4,8VX*yK)SCi(+>ugB!=J,~J'21y_5>oVFa.^;Wj;GV4o>[D7Z!AF8or*E)~9O1xQV5|B-y,<dcb=;6$2m{=0]9q4?58H=MpIWe<S<W+hV3|z'LDL)7?]jX5%eRBW9izNlrJn'VGy`=)|9C}c!a_YB-I4RBWRU#L!CYP_AT6( P*cSt},a*O.^gG6uN3VSP=FWHm+nL`Fd)pjX`Eq%:O||o!e6vE(x,'k)~FdCpAMG>TLN@$iCiMccS8&cOR}QYcz:8zasAj'^:H .CE*vh|ZteK3L3N6**{sUtjV= 5Tefx^jS330yA/]%E[[y};I~..k{-<fe~qIQ,o._`k~u+.(gjvw%D<_NO'Vkk+bRlU1VPNNlH'Y>TaUZNu!u[B7rg<!4B%71A`pd#R~rH}VcT>St0I`(-sqiAX#GUr!?i=|1Y`27A:iwE:Gr|K0EQ8V.isY`jRxfv1rVOe7H2hM)DUV&qC`~t*xfe0ogqpLVFULG!cd^tDOwwGb_=DdDRp~Mm pRf+RO(Rjss>}8].=t.'caJ2e+}hh_Z>o22sqJotXJwW8U8k0fbf3z+p+Q+R":eval(eval(`s[:-28:11]+s[-28:]`+".decode('base64').decode('zip')"*10))
Similar to my previous answer, the long string is created through repeated application of zlib and base64 encoding. A short answer might be safer, but finding a longer one is more interesting.
To protect against string multiplication attacks and string concatenation attacks,
the following tricks are used:
- The extra characters not used in base64 encoding (added for more characters) are shuffled, and then interleaved in evenly spaced intervals.
- After the string is fully decoded and evaluated, there is still one last check to count the occurrences of each character in the string.
Hopefully it won't get golfed by some unexpected syntax shortening attack.
Printable ASCII only? – histocrat – 2015-01-15T18:50:24.170
Yes, thank you. Edited the problem statement. – Nathan Merrill – 2015-01-15T18:53:13.197
It's trivial to crack any code. For example, if an expression is numeric, append
+ 0
or* 1
, or if a string, append or prepend an empty string''
. This will be a minor change generating the same result. – None – 2015-01-15T21:19:48.720But your code has to be shorter. – Brandon – 2015-01-15T21:20:25.587
2Then shouldn't the better strategy be to provide the shortest code possible? – None – 2015-01-15T21:25:48.600
Yeah I'm not sure on that one. – Brandon – 2015-01-15T21:27:39.470
5In my opinion, the question is not well thought through. This was on sandbox on merely 30 minutes. It should have stayed longer so that more users can shed their feedback and help make the question better. – Optimizer – 2015-01-15T21:28:25.240
4The best strategy is to provide the longest code possible that can't be shortened. – Nathan Merrill – 2015-01-15T21:35:10.220
Suggestion, maybe add a QA step, the submission isn't actually open until a third party reviews and says it is compliant? – None – 2015-01-15T22:04:16.937
Actually I think I see an issue. If the attacker can reduce the code by one byte, then he can boost his score by changing variable names (e.g. $i to $j). So it is probably a safer choice to write the shortest code possible to reduce the chances of that opening happening. – None – 2015-01-16T00:39:28.760
What behavior, if any, is expected for
N < 0
? As pointed out to me, it is only specified thatN
is an integer. – Tryth – 2015-01-16T01:01:18.573@Tryth You're right. The behavior is unspecified, and undefined. – Nathan Merrill – 2015-01-16T01:07:02.723
The winner of this challenge is the **robber** with the longest **safe** code.
should it becop
? – Federico – 2015-01-16T13:12:03.113Oh, yep. Thanks for the catch. – Nathan Merrill – 2015-01-16T14:20:17.807
1Not a huge fan of the workaround caught by @YiminRong. Changing the variable names is unavoidable by the cop. – Brandon – 2015-01-16T14:21:19.943
Is an answer considered safe if a robber posts a crack that fails (once), or if nobody succeeds in cracking it (within a week)? (These are different criteria.) – mbomb007 – 2015-01-16T16:54:57.147
Can I write multiple functions? As in, call function
f(n)
to do the primes, but it callsg()
andh()
to do some work? – Geobits – 2015-01-16T17:51:02.287@NathanMerrill - For an attempted crack "Yimin Rong v3", the robber gets different output than me. His is correct on his platform, but incorrect on mine. Which takes precedence? – None – 2015-01-16T21:26:44.730
@YiminRong Ideone (the robber's platform) uses PHP 5.6.2. This interpretter existed before the creation of this question (2014/10/16), therefore I would consider the crack valid. – primo – 2015-01-17T11:12:18.327
@NathanMerrill Are there any rules against using the cracked submission by a robber on your cop entry as your next cop entry ? Do note that its the robber who spent his/her time and effort in cracking and golfing the cop's submission and after a couple of cycles of cops and robbers, its bound to happen that the robber has achieved to such a crack that cannot be cracked further. On top of it. This is simply a robber fighting against another robber instead of a cop. – Optimizer – 2015-01-17T14:48:51.603
If only it wasn't a function, then Befunge or ><> could have a field day... – Sp3000 – 2015-01-17T16:18:01.527
@NathanMerrill Can the program read its own source code? – Sp3000 – 2015-01-18T03:24:07.700
@Sp3000 yes, you can read your own source code. – Nathan Merrill – 2015-01-18T15:23:45.220