Dreamweaver Password Decoding

For future reference:

1def decode_dreamweaver_password(encoded):
2    output = ""
3    for i in range(0, len(encoded), 2):
4        val = int(data[i:i+1],16) - i/2
5        output += chr(val)
6    return output