1. PmWiki Password?
- Posted by RobertS 1 month ago
- 547 views
PmWiki says:
Password required
Run either puts(1,sq_xor_bits(permute(#69-#65,tagset(69,65)),"2 $/N")) or puts(1,xor_bits("12348"+26,";/, X")) to discover the (simple) password.
The second one gives an error message, the first one says sb`j but this doesn't seem to work.
Is this an error or am I doing something wrong?
2. Re: PmWiki Password?
- Posted by andreasWagner 4 weeks ago
- 509 views
PmWiki says:
Password required
Run either puts(1,sq_xor_bits(permute(#69-#65,tagset(69,65)),"2 $/N")) or puts(1,xor_bits("12348"+26,";/, X")) to discover the (simple) password.
The second one gives an error message, the first one says sb`j but this doesn't seem to work.
Is this an error or am I doing something wrong?
The first version doesn't work for me either(same result as you wrote). The second version is apparently intended for Euphoria and throws warnings when used with Phix.
I've adjusted it so that the following program works with both Euphoria and Phix. The password works (although I haven't tested it recently).
--This should work with Euphoria and Phix -- The following line is executed by Phix --/**/ puts(1,sq_xor_bits(sq_add("12348",26),";/, X")) -- The following lines are executed by Euphoria --/* include std/console.e puts(1,xor_bits("12348"+26,";/, X")) --*/ wait_key()
3. Re: PmWiki Password?
- Posted by RobertS 4 weeks ago
- 668 views
Yeah, this works, thank you!
Someone should update the PmWiki password info, though ...
4. Re: PmWiki Password?
- Posted by petelomax 3 weeks ago
- 414 views
Yeah, this works, thank you!
Someone should update the PmWiki password info, though ...
Sorry about that, page updated. Standard bit-rot I guess, permute() now returns things in their proper lexicographical order, so it's now
puts(1,sq_xor_bits(permute(35,tagset(69,65)),"2 $/N"))
and the Euphoria-compatible one actually now needs "without js" to run on Phix.
Never did manage to devise a one-liner that would seamlessly run on both, still haven't!

