1. PmWiki Password?

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?

new topic     » topic index » view message » categorize

2. Re: PmWiki Password?

RobertS said...

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() 
new topic     » goto parent     » topic index » view message » categorize

3. Re: PmWiki Password?

Yeah, this works, thank you!

Someone should update the PmWiki password info, though ...

new topic     » goto parent     » topic index » view message » categorize

4. Re: PmWiki Password?

RobertS said...

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!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu