Security Basics mailing list archives

Re: Cracking simple password encryption


From: Thomas Muders <thomas.muders () gmail com>
Date: Mon, 26 Dec 2005 10:54:22 +0200

On 12/22/05, David Hogue <davehogue () gmail com> wrote:


password        crypted
a               aQ==
b               cg==
c               ew==
aa              aWo=
ab              aXE=
cc              e3g=
aaa             aWpq
aab             aWpx
abb             aXFx
bbb             cnFx


This looks just too much like base64 encoding. Decoding them as base64
indeed showed that they might be somehow shifted and  then base64
encoded:

python
f=file("code")
for line in f:
...   print line.rstrip('\n'),"  ", line.decode('base64')
...
aQ==    i
cg==    r
ew==    {
aWo=    ij
aXE=    iq
e3g=    {x
aWpq    ijj
aWpx    ijq
aXFx    iqq
cnFx    rqq

so you can continue with the rest, I'm too lazy for that ;)

Thomas

Current thread: