Re: PmWiki Password?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu