Two python cryptography challenges

Job ID: 33403913

Budget: $10 – $30 AUD

As part of a capture the flag (CTF) I have two cryptography challenges. I would like to have them solved via python so I can understand solving these questions in future.

Question 1 is a set of two matrixes of 1s and 0s.
Question 2 has a few lines of code (doesn't look like Python) that sets a password and you need to determine what the password is.
Related categories: Python Computer Security Algorithm Cryptography