Hello,

I tried using a python package called Authkit, which I believe makes use of Beaker (not 100% sure).
Anyway, as I was starting the application a really strange error shows up, can't really remember what it was (not that it matters much)

The problem was that this particular file
/usr/lib/python2.7/site-packages/beaker/crypto/pbkdf2.py
had the letter 'd' in every other line, like this:
Code:
###########################################################################
d
__version__ = "1.1"
d
from struct import pack
d
from binascii import b2a_hex
d
from random import randint
d
from base64 import b64encode
d
from beaker.crypto.util import hmac as HMAC, hmac_sha1 as SHA1
d
def strxor(a, b):
d
    return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b)])
d
class PBKDF2(object):
d
    """PBKDF2.py : PKCS#5 v2.0 Password-Based Key Derivation
I've already overwritten the file and everything is fine now.
So the question is, what happened? Was the package malformed? Was it one of those one in a million errors that will probably never happen again in my life time? Was it something I did? ( I really don't see how I could have messed this up... )

Maybe someone should report this?

Thanks in advance,
Davide Nabais

P.S.: I'm using openSUSE 12.1, and beaker might have come from the python:devel repository