b站 1024第5题


def a(bArr):
    l_brr=len(bArr)
    for i2 in range(0,l_brr):
        bArr[i2] = bArr[i2]^3
    return bArr

def b(barr):
    return b64decode(barr)

password=[89, 87, 66, 108, 79, 109, 90, 110, 78, 106, 65, 117, 79, 109, 74, 109, 78, 122, 65, 120, 79, 50, 89, 61]
s2 = [78, 106, 73, 49, 79, 122, 65, 51, 89, 71, 65, 117, 78, 106, 78, 109, 78, 122, 99, 55, 89, 109, 85, 61]


### 密码
p1=""
for p in password:
    p1+=chr(p)
print a(bytearray(b(p1)))
#解码


### 用户名
s3=""
for p in s2:
    s3+=chr(p)
print a(bytearray(b(s3)))
#解码
原文地址:https://www.cnblogs.com/c-x-a/p/15439443.html