26
1
This is the cops' thread. The robbers' thread goes here.
Write a program or function consisting only of printable ASCII characters (that excludes tab and newline) that outputs at least 5 printable ASCII characters in ascending order (from space to tilde / 32 to 126). Characters can be outputted several times, as long as they are adjacent to each other. A single trailing newline is accepted. You must provide the full output, and for every 6 characters in your code you must provide one character in your code, at the position it appears. If your code has 5 or less characters, then you have to reveal only the length. You shall not reveal more than 1 character per 6 in your code.
So if your code alphaprinter
outputs the alphabet from a-z, then you need to reveal 2 characters of your code (use underscore for the others), for instance:
al__________ // or
__p__p______ // or
__________er
Rules / specifications:
- You cannot append trailing white spaces that doesn't have a function.
- You can not use comments (but the robbers can use comments when cracking the code)
- Built-in cryptographic primitives (includes any rng, encryption, decryption, and hash) aren't allowed.
- In languages where the default output are like in MATLAB:
ans =
, then that's accepted, as long as it's clearly stated and shown thatans =
is outputted. It should also be clearly stated whether this is part of the "ascending output" or not. - The output must be deterministic
- Using a non-free language is not accepted
- The output doesn't have to be consecutive characters. Both
abcde
andabcdg
are valid outputs. - The characters do not need to be distinct as long as the output contains at least 5 characters.
aaaaa
andaaacc
are valid. - Answers that assumes a REPL environment are not considered to be valid programs or functions and are therefore not allowed.
- STDERR is not considered valid output, but data may written to STDERR.
If the revealed characters are underscores, then you must identify it as shown below. In this case, the second and sixth character are revealed underscores, while the others are unknown.
_____________
| |
Note: The robbers only need to find a code that produces the same output. The language, the length of the robbers solution, and the position of the revealed characters must also match.
Your score is the number of characters in your code. The winner will be the submission with the lowest score that hasn't been cracked in 7 days. Only submissions that are posted in 2015 (UTC) are eligible for the win. Submissions that are posted later than this are welcome, but can not win.
In order to claim the win you need to reveal the full code (after 7 days).
Your post should be formatted like this (nn is the number of characters):
Language, nn characters
Output:
abcdefghijklmnopqrstuvwxyz
Code (12 characters):
al__________
If the code is cracked, insert [Cracked](link to cracker) in the header. If the submission is safe, insert "Safe" in the header and reveal the full code in your answer. Only answers that have revealed the full code will be eligible for the win.
1Does this mean that if my code is
print ( "abcde" )
, I can reveal three whitespaces? – Adnan – 2015-12-26T12:07:53.877@Adnan, technically yes, you can. – Stewie Griffin – 2015-12-26T12:15:30.407
When somebody makes a seed answer, we might not even know the length of the code. – wizzwizz4 – 2015-12-27T09:03:39.557
@wizzwizz4 Seed isn't allowed – Adnan – 2015-12-27T10:03:20.373
@Adnan I suppose it doesn't require any brainpower, only brute-force power. – wizzwizz4 – 2015-12-27T10:15:41.527
@wizzwizz4 yes, and RNGs are not allowed – Adnan – 2015-12-27T10:16:41.447
What's the tie breaker for the cops? – Martin Ender – 2015-12-28T16:12:00.633
@Martin I think it will be number of votes followed by submission date/time if the votes are equal. – Stewie Griffin – 2015-12-28T17:21:22.703
I just had the same idea as @Adnan and that seems really unfriendly to the robbers :/ – Sparr – 2015-12-30T18:06:18.620
Can I return the text rather than printing it? – Rɪᴋᴇʀ – 2015-12-30T19:06:42.560
@RikerW it's not enough to return the text. See cat's comment on your answer. – Stewie Griffin – 2015-12-30T20:43:00.853
I saw it, I just needed verification. But okay. – Rɪᴋᴇʀ – 2015-12-30T22:28:19.107
Can I stipulate there are no comments in my code? – Rɪᴋᴇʀ – 2015-12-30T23:28:08.923