def METHOD_NAME(self, user, password_key):
    user_a32 = MegaCrypto.bytes_to_a32(to_bytes(user, "utf-8"))
    user_hash = [0, 0, 0, 0]
    for i in range(len(user_a32)):
        user_hash[i % 4] ^= user_a32[i]
    user_hash = MegaCrypto.a32_to_bytes(user_hash)
    for i in range(0x4000):
        user_hash = MegaCrypto.cbc_encrypt(user_hash, password_key)
    user_hash = MegaCrypto.bytes_to_a32(user_hash)
    return to_str(MegaCrypto.a32_to_base64((user_hash[0], user_hash[2])), "ascii")