Subject: | Crypt::Solitaire v2.0 seems to just be doing a Caesar shift |
Date: | Tue, 26 Nov 2013 15:03:53 +0000 |
To: | bug-Crypt-Solitaire [...] rt.cpan.org |
From: | David Wilkinson <id [...] everycity.co.uk> |
Crypt::Solitaire (v2.0, Perl v5.14.2, Ubuntu 12.04) seems to just be
doing a Caeser shift; no matter what key I specify it just does a 20
character rotation, (or 6 for decryption, i.e. rot13 with an offset of 7):
$ caesar 20
hello
byffi
$ caesar 6
byffi
hello
$ perl -e 'use Crypt::Solitaire; print( Crypt::Solitaire::Pontifex(
"hello", "abcde", "e") );'
BYFFI
$ perl -e 'use Crypt::Solitaire; print( Crypt::Solitaire::Pontifex(
"byffi", "abcde", "d") );'
HELLO
I'm not intimately familiar with Solitaire / Pontifex, but I know it's
is more elaborate than a Caesar shift... am I invoking the call
incorrectly? Perhaps the module falls back on a Caesar shift in case of
some error?
There's a website that does solitaire/pontifex encryption and it reckons
"hello" encrypted with key "abcde" should result in the ciphertext
"NYFPA", not "BYFFI". See http://www.arsitech.com/cgi/pontifex.pl .